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

Unified Diff: cc/resource_provider.h

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename to GaneshContextProvider Created 7 years, 10 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
Index: cc/resource_provider.h
diff --git a/cc/resource_provider.h b/cc/resource_provider.h
index ead62a375e82b647bd79ba792e5150463bfeed3a..29b071a41642f38fc49625f566e6c3a6c4efeeed 100644
--- a/cc/resource_provider.h
+++ b/cc/resource_provider.h
@@ -24,6 +24,8 @@
#include "third_party/skia/include/core/SkCanvas.h"
#include "ui/gfx/size.h"
+class GrContext;
+
namespace WebKit {
class WebGraphicsContext3D;
}
@@ -35,6 +37,7 @@ class Vector2d;
namespace cc {
+class GaneshContextProvider;
class TextureUploader;
// This class is not thread-safe and can only be called from the thread it was
@@ -261,6 +264,9 @@ public:
// Indicates if we can currently lock this resource for write.
bool canLockForWrite(ResourceId);
+ GaneshContextProvider* ganeshContextProvider() { return m_ganeshContextProvider.get(); }
+ void setGaneshContexts(WebKit::WebGraphicsContext3D* context3d, GrContext* grContext);
+
private:
struct Resource {
Resource();
@@ -332,6 +338,8 @@ private:
int m_maxTextureSize;
GLenum m_bestTextureFormat;
+ scoped_ptr<GaneshContextProvider> m_ganeshContextProvider;
+
base::ThreadChecker m_threadChecker;
scoped_refptr<Fence> m_currentReadLockFence;
« cc/gl_renderer.cc ('K') | « cc/render_surface_filters.cc ('k') | cc/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698