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

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: rebaseforreals 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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index d8ccab536ed98b7bac5bdc0e92ff16c82fdc54e1..10210e9fcd396c80115f026b06bf729cd167488b 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;
}
@@ -101,6 +105,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
@@ -114,9 +122,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;
@@ -157,6 +162,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+
+ scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
};
} // namespace content
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698