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

Unified Diff: cc/resources/resource_provider.cc

Issue 110583008: Enable Canvas2D hardware acceleration for Android WebView Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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: cc/resources/resource_provider.cc
===================================================================
--- cc/resources/resource_provider.cc (revision 243070)
+++ cc/resources/resource_provider.cc (working copy)
@@ -545,7 +545,7 @@
}
if (resource->mailbox.IsValid() && resource->external) {
GLuint sync_point = resource->mailbox.sync_point();
- if (resource->mailbox.IsTexture()) {
+ if (resource->mailbox.IsTexture() && ContextGL() != NULL) {
lost_resource |= lost_output_surface_;
GLES2Interface* gl = ContextGL();
DCHECK(gl);

Powered by Google App Engine
This is Rietveld 408576698