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

Unified Diff: cc/resource_provider.cc

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.cc
diff --git a/cc/resource_provider.cc b/cc/resource_provider.cc
index e6983543e480c9770a0e1437f55d97564db36837..b685c61406d1cdef315ae1d467211cb68bd4873a 100644
--- a/cc/resource_provider.cc
+++ b/cc/resource_provider.cc
@@ -11,6 +11,7 @@
#include "base/stl_util.h"
#include "base/string_split.h"
#include "base/string_util.h"
+#include "cc/ganesh_context_provider.h"
#include "cc/gl_renderer.h" // For the GLC() macro.
#include "cc/platform_color.h"
#include "cc/texture_uploader.h"
@@ -576,6 +577,7 @@ ResourceProvider::ResourceProvider(OutputSurface* context)
, m_useShallowFlush(false)
, m_maxTextureSize(0)
, m_bestTextureFormat(0)
+ , m_ganeshContextProvider(GaneshContextProvider::Create())
{
}
@@ -1084,4 +1086,8 @@ void ResourceProvider::enableReadLockFences(ResourceProvider::ResourceId id, boo
resource->enableReadLockFences = enable;
}
+void ResourceProvider::setGaneshContexts(WebKit::WebGraphicsContext3D* context3d, GrContext* grContext) {
+ m_ganeshContextProvider->set_contexts(context3d, grContext);
+}
+
} // namespace cc
« cc/gl_renderer.cc ('K') | « cc/resource_provider.h ('k') | cc/resource_update_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698