| 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
|
|
|