Chromium Code Reviews| Index: cc/layer_updater.h |
| diff --git a/cc/layer_updater.h b/cc/layer_updater.h |
| index ccab94559e894a4580079440674a03a342406a49..43344325b2ed3d3f2b7b99c97b354866b896a881 100644 |
| --- a/cc/layer_updater.h |
| +++ b/cc/layer_updater.h |
| @@ -6,20 +6,21 @@ |
| #define CC_LAYER_UPDATER_H_ |
| #include "base/memory/ref_counted.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "cc/cc_export.h" |
| -#include "cc/prioritized_resource.h" |
| -#include "third_party/khronos/GLES2/gl2.h" |
| +#include "ui/gfx/rect.h" |
|
danakj
2013/01/07 14:48:03
not sure why this can't be forward declared here s
|
| namespace gfx { |
| -class Rect; |
| class Vector2d; |
| } |
| namespace cc { |
| +class PrioritizedResource; |
| +class PrioritizedResourceManager; |
| +class ResourceUpdateQueue; |
| class TextureManager; |
| struct RenderingStats; |
| -class ResourceUpdateQueue; |
| class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> { |
| public: |
| @@ -29,7 +30,7 @@ public: |
| virtual ~Resource(); |
| PrioritizedResource* texture() { return m_texture.get(); } |
| - void swapTextureWith(scoped_ptr<PrioritizedResource>& texture) { m_texture.swap(texture); } |
| + void swapTextureWith(scoped_ptr<PrioritizedResource>& 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; |
| @@ -38,6 +39,8 @@ public: |
| private: |
| scoped_ptr<PrioritizedResource> m_texture; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(Resource); |
| }; |
| LayerUpdater() { } |