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

Unified Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 1916923004: Request context sharing via content::ContextProviderCommandBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sharegroup: . 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: gpu/command_buffer/client/gles2_implementation.h
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
index 14c057791f9da05b698708e315b81d0e13c794db..23696ce076c6e81101de8d249b5363feb9e2cccc 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -160,7 +160,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
static const size_t kMaxSwapBuffers = 2;
GLES2Implementation(GLES2CmdHelper* helper,
- ShareGroup* share_group,
+ scoped_refptr<ShareGroup> share_group,
TransferBufferInterface* transfer_buffer,
bool bind_generates_resource,
bool lose_context_when_out_of_memory,
@@ -262,9 +262,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) override;
- ShareGroup* share_group() const {
- return share_group_.get();
- }
+ const scoped_refptr<ShareGroup>& share_group() const { return share_group_; }
const Capabilities& capabilities() const {
return capabilities_;

Powered by Google App Engine
This is Rietveld 408576698