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

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: Compile errors from rebase, still... 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 | content/test/data/gpu/pixel_canvas2d_webgl.html » ('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..e08f9e3657c233f67431f33dc4e4982f0571eac2 100644
--- a/cc/blink/web_external_texture_layer_impl.cc
+++ b/cc/blink/web_external_texture_layer_impl.cc
@@ -87,8 +87,10 @@ bool WebExternalTextureLayerImpl::PrepareTextureMailbox(
memcpy(&sync_token, client_mailbox.syncToken, sizeof(sync_token));
gfx::Size size;
- if (client_mailbox.allowOverlay)
- size = gfx::Size(layer_->bounds().width, layer_->bounds().height);
+ if (client_mailbox.allowOverlay) {
+ 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 | content/test/data/gpu/pixel_canvas2d_webgl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698