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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 7554015: Implemented support for GL constext share groups in the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/gpu_command_buffer_stub.cc
===================================================================
--- content/common/gpu/gpu_command_buffer_stub.cc (revision 95161)
+++ content/common/gpu/gpu_command_buffer_stub.cc (working copy)
@@ -29,6 +29,7 @@
GpuCommandBufferStub::GpuCommandBufferStub(
GpuChannel* channel,
+ GpuCommandBufferStub* share_group,
gfx::PluginWindowHandle handle,
const gfx::Size& size,
const gpu::gles2::DisallowedExtensions& disallowed_extensions,
@@ -54,6 +55,10 @@
parent_texture_for_initialization_(0),
watchdog_(watchdog),
task_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
+ if (share_group)
+ context_group_ = share_group->context_group_;
+ else
+ context_group_ = new gpu::gles2::ContextGroup;
}
GpuCommandBufferStub::~GpuCommandBufferStub() {
@@ -147,7 +152,7 @@
if (command_buffer_->Initialize(&shared_memory, size)) {
scheduler_.reset(gpu::GpuScheduler::Create(command_buffer_.get(),
channel_,
- NULL));
+ context_group_.get()));
#if defined(TOUCH_UI)
if (software_) {
OnInitializeFailed(reply_message);

Powered by Google App Engine
This is Rietveld 408576698