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

Unified Diff: cc/blink/web_external_texture_layer_impl.cc

Issue 1804243002: Re-enable IOSurface Canvas2D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. Created 4 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 | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_external_texture_layer_impl.cc
diff --git a/cc/blink/web_external_texture_layer_impl.cc b/cc/blink/web_external_texture_layer_impl.cc
index 03f6e18fb64c45f89b7293d84863c185737b1460..ca33e9f9504bf434d9d8e94f3025292d87b49117 100644
--- a/cc/blink/web_external_texture_layer_impl.cc
+++ b/cc/blink/web_external_texture_layer_impl.cc
@@ -86,9 +86,8 @@ bool WebExternalTextureLayerImpl::PrepareTextureMailbox(
if (client_mailbox.validSyncToken)
memcpy(&sync_token, client_mailbox.syncToken, sizeof(sync_token));
- gfx::Size size;
- if (client_mailbox.allowOverlay)
danakj 2016/03/16 01:21:19 https://code.google.com/p/chromium/codesearch#chro
erikchen 2016/03/16 01:33:58 For other onlookers, the comment says: """ // This
danakj 2016/03/16 01:48:25 Well, but what's the point of passing in something
erikchen 2016/03/16 01:55:30 I re-added the conditional """if (client_mailbox.a
- size = gfx::Size(layer_->bounds().width, layer_->bounds().height);
+ gfx::Size size = gfx::Size(client_mailbox.textureSize.width,
+ client_mailbox.textureSize.height);
*mailbox =
cc::TextureMailbox(name, sync_token, client_mailbox.textureTarget, size,
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698