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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.h

Issue 120043005: Remove unneeded WebGraphicsContext3D refs from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/common/gpu/client/context_provider_command_buffer.h
diff --git a/content/common/gpu/client/context_provider_command_buffer.h b/content/common/gpu/client/context_provider_command_buffer.h
index 2f8e4f2ee0f151773fa7488f208c5921a4548916..d61e05c3c51699a5a1cb88a8cc9cc1b3f92b1faa 100644
--- a/content/common/gpu/client/context_provider_command_buffer.h
+++ b/content/common/gpu/client/context_provider_command_buffer.h
@@ -30,6 +30,15 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
const std::string& debug_name);
+ CommandBufferProxyImpl* GetCommandBufferProxy();
+ int GetGPUProcessID();
+
+ void set_leak_on_destroy() {
+ base::AutoLock lock(main_thread_lock_);
+ leak_on_destroy_ = true;
+ }
+
+ // cc::ContextProvider implementation.
virtual bool BindToCurrentThread() OVERRIDE;
virtual WebGraphicsContext3DCommandBufferImpl* Context3d() OVERRIDE;
virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE;
@@ -46,11 +55,6 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
const MemoryPolicyChangedCallback& memory_policy_changed_callback)
OVERRIDE;
- void set_leak_on_destroy() {
- base::AutoLock lock(main_thread_lock_);
- leak_on_destroy_ = true;
- }
-
protected:
ContextProviderCommandBuffer(
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,

Powered by Google App Engine
This is Rietveld 408576698