diff options
author | reveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 21:16:40 +0000 |
---|---|---|
committer | reveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 21:16:40 +0000 |
commit | 3b10a30273e8efe972c623f859a50b5a8643a063 (patch) | |
tree | 4cf6423c7541350104105c61cb3293356805bfa4 /cc/layer_updater.h | |
parent | 34f3e03f8de771a2bf954c9f029804768fec2a5b (diff) | |
download | chromium_src-3b10a30273e8efe972c623f859a50b5a8643a063.zip chromium_src-3b10a30273e8efe972c623f859a50b5a8643a063.tar.gz chromium_src-3b10a30273e8efe972c623f859a50b5a8643a063.tar.bz2 |
cc: Rename PrioritizedTexture to PrioritizedResource.
sed -e '
s/PrioritizedTexture/PrioritizedResource/g
s/prioritized_texture/prioritized_resource/g
s/PRIORITIZED_TEXTURE/PRIORITIZED_RESOURCE/g
s/managedTexture/managedResource/g
s/textureManager/resourceManager/g
s/constentsTextureManager/constentsResourceManager/g
'
BUG=
TEST=cc_unittests
Review URL: https://codereview.chromium.org/11369109
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_updater.h')
-rw-r--r-- | cc/layer_updater.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cc/layer_updater.h b/cc/layer_updater.h index b2cab71..ccab945 100644 --- a/cc/layer_updater.h +++ b/cc/layer_updater.h @@ -7,7 +7,7 @@ #include "base/memory/ref_counted.h" #include "cc/cc_export.h" -#include "cc/prioritized_texture.h" +#include "cc/prioritized_resource.h" #include "third_party/khronos/GLES2/gl2.h" namespace gfx { @@ -28,21 +28,21 @@ public: public: virtual ~Resource(); - PrioritizedTexture* texture() { return m_texture.get(); } - void swapTextureWith(scoped_ptr<PrioritizedTexture>& texture) { m_texture.swap(texture); } + PrioritizedResource* texture() { return m_texture.get(); } + void swapTextureWith(scoped_ptr<PrioritizedResource>& texture) { m_texture.swap(texture); } // TODO(reveman): partialUpdate should be a property of this class // instead of an argument passed to update(). virtual void update(ResourceUpdateQueue&, const gfx::Rect& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate, RenderingStats&) = 0; protected: - explicit Resource(scoped_ptr<PrioritizedTexture> texture); + explicit Resource(scoped_ptr<PrioritizedResource> texture); private: - scoped_ptr<PrioritizedTexture> m_texture; + scoped_ptr<PrioritizedResource> m_texture; }; LayerUpdater() { } - virtual scoped_ptr<Resource> createResource(PrioritizedTextureManager*) = 0; + virtual scoped_ptr<Resource> createResource(PrioritizedResourceManager*) = 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 gfx::Rect& contentRect, const gfx::Size& tileSize, float contentsWidthScale, float contentsHeightScale, gfx::Rect& resultingOpaqueRect, RenderingStats&) { } |