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

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

Issue 1936503003: Collapse the initialize methods in WebGraphicsContext3DCommandBufferImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attributes
Patch Set: collapse: rebase Created 4 years, 8 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/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 6ef512f82f2b9fb409d20e2f02561f3912ec5152..f26238069e60bb58e88703dc81ff17cab80b3410 100644
--- a/content/common/gpu/client/context_provider_command_buffer.h
+++ b/content/common/gpu/client/context_provider_command_buffer.h
@@ -82,6 +82,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
scoped_refptr<SharedProviders> shared_providers_;
+ base::Lock context_lock_; // Referenced by context3d_.
std::unique_ptr<WebGraphicsContext3DCommandBufferImpl> context3d_;
std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_;
std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
@@ -92,8 +93,6 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
LostContextCallback lost_context_callback_;
- base::Lock context_lock_;
-
class LostContextCallbackProxy;
std::unique_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
};

Powered by Google App Engine
This is Rietveld 408576698