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

Unified Diff: Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 660083002: Remove usage of kReturnToCache_FlagBit in C2D layer bridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 93917394085ac46469456f87a9eb5834a46d76c2..04377924a0f6b67dfc1357941204c5bdcdc5b310 100644
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -319,8 +319,6 @@ void Canvas2DLayerBridge::freeReleasedMailbox()
}
// Invalidate texture state in case the compositor altered it since the copy-on-write.
if (mailboxInfo->m_image) {
- if (isHidden() || releasedMailboxHasExpired())
- mailboxInfo->m_image->getTexture()->resetFlag(static_cast<GrTextureFlags>(GrTexture::kReturnToCache_FlagBit));
mailboxInfo->m_image->getTexture()->textureParamsModified();
mailboxInfo->m_image.clear();
}
« 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