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

Unified Diff: cc/layer_updater.h

Issue 11794019: Avoid exposing gl bindings through cc public API headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_updater.h
diff --git a/cc/layer_updater.h b/cc/layer_updater.h
index ccab94559e894a4580079440674a03a342406a49..5ee4a2c84b5964f3461aaa5361aba8d19ebb4842 100644
--- a/cc/layer_updater.h
+++ b/cc/layer_updater.h
@@ -6,20 +6,22 @@
#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"
namespace gfx {
class Rect;
+class Size;
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 +31,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 +40,8 @@ public:
private:
scoped_ptr<PrioritizedResource> m_texture;
+
+ DISALLOW_COPY_AND_ASSIGN(Resource);
};
LayerUpdater() { }
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698