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

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

Issue 9648014: use preferDiscreteGpu attribute in WebGraphicsContext3D initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update case on attribute Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ea5f90d78151db78e0026a1ef679b03d66b1bf18..c2f6d60147251dcc50cd168502dba6e5e8a2d6e7 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -92,10 +92,7 @@ bool WebGraphicsContext3DCommandBufferImpl::Initialize(
if (!factory)
return false;
- // The noExtensions and canRecoverFromContextLoss flags are
- // currently used as hints that we are creating a context on
- // behalf of WebGL or accelerated 2D canvas, respectively.
- if (attributes.noExtensions || !attributes.canRecoverFromContextLoss)
+ if (attributes.preferDiscreteGPU)
gpu_preference_ = gfx::PreferDiscreteGpu;
bool retry = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698