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

Unified Diff: chrome/gpu/gpu_channel.cc

Issue 6623063: Connect up --disable-gl-multisampling to command buffer (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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: chrome/gpu/gpu_channel.cc
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index dbbb9a51e37f487065d8b0a9b04e9f466240c0b2..af1be57a5f4fc4a2efe3ffeee06f58a85d54d85b 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -32,6 +32,7 @@ GpuChannel::GpuChannel(GpuThread* gpu_thread,
DCHECK(renderer_id);
const CommandLine* command_line = CommandLine::ForCurrentProcess();
log_messages_ = command_line->HasSwitch(switches::kLogPluginMessages);
+ disallowed_extensions_.multisampling = command_line->HasSwitch(switches::kDisableGLMultisampling);
zmo 2011/03/07 23:34:29 here also: 80 per line.
}
GpuChannel::~GpuChannel() {
@@ -95,7 +96,8 @@ void GpuChannel::CreateViewCommandBuffer(
#if defined(ENABLE_GPU)
*route_id = GenerateRouteID();
scoped_ptr<GpuCommandBufferStub> stub(new GpuCommandBufferStub(
- this, window, NULL, gfx::Size(), init_params.allowed_extensions,
+ this, window, NULL, gfx::Size(), disallowed_extensions_,
+ init_params.allowed_extensions,
init_params.attribs, 0, *route_id, renderer_id_, render_view_id));
router_.AddRoute(*route_id, stub.get());
stubs_.AddWithID(stub.release(), *route_id);
@@ -174,6 +176,7 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
gfx::kNullPluginWindow,
parent_stub,
size,
+ disallowed_extensions_,
init_params.allowed_extensions,
init_params.attribs,
parent_texture_id,

Powered by Google App Engine
This is Rietveld 408576698