summaryrefslogtreecommitdiffstats
path: root/cc/layer_updater.h
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-25 03:25:55 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-25 03:25:55 +0000
commitf33db56b4a1b7b753e09028588b7d670ce5d5b26 (patch)
tree5e1b546c63f145c300808b88be3985c79013707b /cc/layer_updater.h
parent12066cbcd88f48b5fcf537883b862f454f24ee0b (diff)
downloadchromium_src-f33db56b4a1b7b753e09028588b7d670ce5d5b26.zip
chromium_src-f33db56b4a1b7b753e09028588b7d670ce5d5b26.tar.gz
chromium_src-f33db56b4a1b7b753e09028588b7d670ce5d5b26.tar.bz2
cc: Rename LayerUpdater::Texture to LayerUpdater::Resource.
BUG= TEST=cc_unittests Review URL: https://chromiumcodereview.appspot.com/11236078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_updater.h')
-rw-r--r--cc/layer_updater.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/layer_updater.h b/cc/layer_updater.h
index 10bced3..b3905ab 100644
--- a/cc/layer_updater.h
+++ b/cc/layer_updater.h
@@ -19,10 +19,10 @@ class TextureUpdateQueue;
class LayerUpdater : public base::RefCounted<LayerUpdater> {
public:
- // Allows texture uploaders to store per-tile resources.
- class Texture {
+ // Allows updaters to store per-resource update properties.
+ class Resource {
public:
- virtual ~Texture();
+ virtual ~Resource();
PrioritizedTexture* texture() { return m_texture.get(); }
void swapTextureWith(scoped_ptr<PrioritizedTexture>& texture) { m_texture.swap(texture); }
@@ -30,7 +30,7 @@ public:
// instead of an argument passed to update().
virtual void update(TextureUpdateQueue&, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, RenderingStats&) = 0;
protected:
- explicit Texture(scoped_ptr<PrioritizedTexture> texture);
+ explicit Resource(scoped_ptr<PrioritizedTexture> texture);
private:
scoped_ptr<PrioritizedTexture> m_texture;
@@ -38,7 +38,7 @@ public:
LayerUpdater() { }
- virtual scoped_ptr<Texture> createTexture(PrioritizedTextureManager*) = 0;
+ virtual scoped_ptr<Resource> createResource(PrioritizedTextureManager*) = 0;
// The |resultingOpaqueRect| gives back a region of the layer that was painted opaque. If the layer is marked opaque in the updater,
// then this region should be ignored in preference for the entire layer's area.
virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tileSize, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpaqueRect, RenderingStats&) { }