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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 12212100: Provide shared context to Platform API in renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index e6f1eef5ce817be3ccdaa25273bbddb1acc7aa82..530e1a0d3e0d1de22a7b381529c5f76b85a0eb30 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -14,6 +14,10 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerRepository.h"
+namespace cc {
+class ContextProvider;
+}
+
namespace webkit_glue {
class WebClipboardImpl;
}
@@ -100,6 +104,10 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
WebKit::WebMediaStreamCenterClient* client);
virtual bool processMemorySizesInBytes(
size_t* private_bytes, size_t* shared_bytes);
+ virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
+ const WebKit::WebGraphicsContext3D::Attributes& attributes);
+ virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D();
+ virtual GrContext* sharedOffscreenGrContext();
// Disables the WebSandboxSupport implementation for testing.
// Tests that do not set up a full sandbox environment should call
@@ -113,9 +121,6 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
// Set WebGamepads to return when sampleGamepads() is invoked.
static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads);
- protected:
- virtual GpuChannelHostFactory* GetGpuChannelHostFactory() OVERRIDE;
-
private:
bool CheckPreparsedJsCachingEnabled() const;
@@ -154,6 +159,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
+
+ scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698