summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2016-03-16 15:32:26 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-16 22:35:24 +0000
commit4e7ecf36fb2af3e3677c085de5b1ea6e7e75f3be (patch)
tree13a62ad99cb0ea622967a3fbf958c97752f095f3 /third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
parent8ce1943be5284c67fb79cae9bf1576624fba97b6 (diff)
downloadchromium_src-4e7ecf36fb2af3e3677c085de5b1ea6e7e75f3be.zip
chromium_src-4e7ecf36fb2af3e3677c085de5b1ea6e7e75f3be.tar.gz
chromium_src-4e7ecf36fb2af3e3677c085de5b1ea6e7e75f3be.tar.bz2
Re-enable IOSurface Canvas2D.
Previously, WebExternalTextureLayerImpl inferred the size of the texture from the bounds of the WebLayer, but the two are not necessarily the same. This CL passes the texture size through WebExternalTextureMailbox. This CL also adds a pixel test. BUG=595063 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1804243002 Cr-Commit-Position: refs/heads/master@{#381570}
Diffstat (limited to 'third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp')
-rw-r--r--third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 3b361f7..6234643 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -306,6 +306,7 @@ bool DrawingBuffer::prepareMailbox(WebExternalTextureMailbox* outMailbox, WebExt
frontColorBufferMailbox->mailbox.validSyncToken = m_context->genSyncTokenCHROMIUM(fenceSync, frontColorBufferMailbox->mailbox.syncToken);
frontColorBufferMailbox->mailbox.allowOverlay = frontColorBufferMailbox->textureInfo.imageId != 0;
frontColorBufferMailbox->mailbox.textureTarget = frontColorBufferMailbox->textureInfo.parameters.target;
+ frontColorBufferMailbox->mailbox.textureSize = WebSize(m_size.width(), m_size.height());
setBufferClearNeeded(true);
// set m_parentDrawingBuffer to make sure 'this' stays alive as long as it has live mailboxes