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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 57543004: Don't test kEnableThreadedCompositing in WebGraphicsContext3DCommandBufferImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 57128427f65e5ed5168e0ed47d0145c9d1db6031..89dd90317e0b3cbbad987073fdadb9be028824d4 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -229,6 +229,7 @@ WebGraphicsContext3DCommandBufferImpl::WebGraphicsContext3DCommandBufferImpl(
const GURL& active_url,
GpuChannelHost* host,
const base::WeakPtr<WebGraphicsContext3DSwapBuffersClient>& swap_client,
+ bool use_echo_for_swap_ack,
const Attributes& attributes,
bool bind_generates_resources,
const SharedMemoryLimits& limits)
@@ -251,15 +252,9 @@ WebGraphicsContext3DCommandBufferImpl::WebGraphicsContext3DCommandBufferImpl(
gl_(NULL),
frame_number_(0),
bind_generates_resources_(bind_generates_resources),
- use_echo_for_swap_ack_(true),
+ use_echo_for_swap_ack_(use_echo_for_swap_ack),
mem_limits_(limits),
flush_id_(0) {
-#if (defined(OS_MACOSX) || defined(OS_WIN)) && !defined(USE_AURA)
- // Get ViewMsg_SwapBuffers_ACK from browser for single-threaded path.
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- use_echo_for_swap_ack_ =
- command_line.HasSwitch(switches::kEnableThreadedCompositing);
-#endif
}
WebGraphicsContext3DCommandBufferImpl::
@@ -1280,10 +1275,12 @@ WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
if (!host)
return NULL;
base::WeakPtr<WebGraphicsContext3DSwapBuffersClient> null_client;
+ bool use_echo_for_swap_ack = true;
return new WebGraphicsContext3DCommandBufferImpl(0,
active_url,
host,
null_client,
+ use_echo_for_swap_ack,
attributes,
false,
SharedMemoryLimits());
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698