Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: cc/resources/image_layer_updater.h

Issue 13245007: cc: Remove RenderingStats passed to ContentLayerUpdater during Layer::Update() (Closed) Base URL: http://git.chromium.org/chromium/src.git@three
Patch Set: Rebase to 208926 Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/resources/image_layer_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_IMAGE_LAYER_UPDATER_H_
6 #define CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_IMAGE_LAYER_UPDATER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/layer_updater.h" 9 #include "cc/resources/layer_updater.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class ResourceUpdateQueue; 14 class ResourceUpdateQueue;
15 15
16 class CC_EXPORT ImageLayerUpdater : public LayerUpdater { 16 class CC_EXPORT ImageLayerUpdater : public LayerUpdater {
17 public: 17 public:
18 class Resource : public LayerUpdater::Resource { 18 class Resource : public LayerUpdater::Resource {
19 public: 19 public:
20 Resource(ImageLayerUpdater* updater, 20 Resource(ImageLayerUpdater* updater,
21 scoped_ptr<PrioritizedResource> texture); 21 scoped_ptr<PrioritizedResource> texture);
22 virtual ~Resource(); 22 virtual ~Resource();
23 23
24 virtual void Update(ResourceUpdateQueue* queue, 24 virtual void Update(ResourceUpdateQueue* queue,
25 gfx::Rect source_rect, 25 gfx::Rect source_rect,
26 gfx::Vector2d dest_offset, 26 gfx::Vector2d dest_offset,
27 bool partial_update, 27 bool partial_update) OVERRIDE;
28 RenderingStats* stats) OVERRIDE;
29 28
30 private: 29 private:
31 ImageLayerUpdater* updater_; 30 ImageLayerUpdater* updater_;
32 31
33 DISALLOW_COPY_AND_ASSIGN(Resource); 32 DISALLOW_COPY_AND_ASSIGN(Resource);
34 }; 33 };
35 34
36 static scoped_refptr<ImageLayerUpdater> Create(); 35 static scoped_refptr<ImageLayerUpdater> Create();
37 36
38 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( 37 virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
(...skipping 12 matching lines...) Expand all
51 virtual ~ImageLayerUpdater() {} 50 virtual ~ImageLayerUpdater() {}
52 51
53 SkBitmap bitmap_; 52 SkBitmap bitmap_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater); 54 DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater);
56 }; 55 };
57 56
58 } // namespace cc 57 } // namespace cc
59 58
60 #endif // CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ 59 #endif // CC_RESOURCES_IMAGE_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/resources/image_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698