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

Side by Side Diff: cc/image_layer_updater.h

Issue 11369109: cc: Rename PrioritizedTexture to PrioritizedResource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/gl_renderer_unittest.cc ('k') | cc/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 ImageLayerUpdater_h 5 #ifndef ImageLayerUpdater_h
6 #define ImageLayerUpdater_h 6 #define ImageLayerUpdater_h
7 7
8 #include "config.h" 8 #include "config.h"
9 9
10 #include "cc/layer_updater.h" 10 #include "cc/layer_updater.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class ResourceUpdateQueue; 14 class ResourceUpdateQueue;
15 15
16 class ImageLayerUpdater : public LayerUpdater { 16 class 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, scoped_ptr<PrioritizedTexture> text ure) 20 Resource(ImageLayerUpdater* updater, scoped_ptr<PrioritizedResource> tex ture)
21 : LayerUpdater::Resource(texture.Pass()) 21 : LayerUpdater::Resource(texture.Pass())
22 , m_updater(updater) 22 , m_updater(updater)
23 { 23 {
24 } 24 }
25 25
26 virtual void update(ResourceUpdateQueue&, const gfx::Rect& sourceRect, c onst gfx::Vector2d& destOffset, bool partialUpdate, RenderingStats&) OVERRIDE; 26 virtual void update(ResourceUpdateQueue&, const gfx::Rect& sourceRect, c onst gfx::Vector2d& destOffset, bool partialUpdate, RenderingStats&) OVERRIDE;
27 27
28 private: 28 private:
29 ImageLayerUpdater* m_updater; 29 ImageLayerUpdater* m_updater;
30 }; 30 };
31 31
32 static scoped_refptr<ImageLayerUpdater> create(); 32 static scoped_refptr<ImageLayerUpdater> create();
33 33
34 virtual scoped_ptr<LayerUpdater::Resource> createResource( 34 virtual scoped_ptr<LayerUpdater::Resource> createResource(
35 PrioritizedTextureManager*) OVERRIDE; 35 PrioritizedResourceManager*) OVERRIDE;
36 36
37 void updateTexture(ResourceUpdateQueue&, PrioritizedTexture*, const gfx::Rec t& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate); 37 void updateTexture(ResourceUpdateQueue&, PrioritizedResource*, const gfx::Re ct& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate);
38 38
39 void setBitmap(const SkBitmap&); 39 void setBitmap(const SkBitmap&);
40 40
41 private: 41 private:
42 ImageLayerUpdater() { } 42 ImageLayerUpdater() { }
43 virtual ~ImageLayerUpdater() { } 43 virtual ~ImageLayerUpdater() { }
44 44
45 SkBitmap m_bitmap; 45 SkBitmap m_bitmap;
46 }; 46 };
47 47
48 } 48 }
49 49
50 #endif 50 #endif
OLDNEW
« no previous file with comments | « cc/gl_renderer_unittest.cc ('k') | cc/image_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698