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

Unified Diff: Source/WebCore/platform/graphics/chromium/CanvasLayerChromium.cpp

Issue 7671031: Merge 92520 - [chromium] Accelerated canvas breaks when moving canvases or resources between Pages (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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: Source/WebCore/platform/graphics/chromium/CanvasLayerChromium.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/CanvasLayerChromium.cpp (revision 93254)
+++ Source/WebCore/platform/graphics/chromium/CanvasLayerChromium.cpp (working copy)
@@ -42,8 +42,6 @@
CanvasLayerChromium::CanvasLayerChromium(GraphicsLayerChromium* owner)
: LayerChromium(owner)
- , m_textureChanged(true)
- , m_textureId(0)
, m_hasAlpha(true)
, m_premultipliedAlpha(true)
{
@@ -63,7 +61,7 @@
LayerChromium::pushPropertiesTo(layer);
CCCanvasLayerImpl* canvasLayer = static_cast<CCCanvasLayerImpl*>(layer);
- canvasLayer->setTextureId(m_textureId);
+ canvasLayer->setTextureId(textureId());
canvasLayer->setHasAlpha(m_hasAlpha);
canvasLayer->setPremultipliedAlpha(m_premultipliedAlpha);
}

Powered by Google App Engine
This is Rietveld 408576698