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

Unified Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc

Issue 4320003: Disable accelerated 2D canvas on DX9 by not initializing GraphicsContext3D if it can be lost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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
« 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: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
index 1ffd0fe11c866c5c2f135e394222ca272e1fc506..19ced5ace7c81149b4d8f2e4fd128a3ede9fdc32 100644
--- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -87,6 +87,12 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize(
ggl::GGL_NONE,
};
+ if (attributes.canRecoverFromContextLoss == false) {
jamesr 2010/11/10 21:22:01 nit: if (!attributes.canRecoverFromContextLoss)
+ GPUInfo gpu_info = host->gpu_info();
+ if (gpu_info.can_lose_context())
+ return false;
+ }
+
if (render_directly_to_web_view) {
RenderView* renderview = RenderView::FromWebView(web_view);
if (!renderview)
« 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