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

Unified Diff: WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp

Issue 10633016: Merge r120507 to chromium 1132 branch. (Closed) Base URL: svn://svn.chromium.org/webkit-readonly/branches/chromium/1132/Source/
Patch Set: Created 8 years, 6 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 | « WebCore/WebCore.gypi ('k') | WebCore/platform/graphics/chromium/ImageLayerChromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp
===================================================================
--- WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (revision 120960)
+++ WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (working copy)
@@ -52,6 +52,7 @@
#include "Image.h"
#include "ImageLayerChromium.h"
#include "LayerChromium.h"
+#include "NativeImageSkia.h"
#include "PlatformString.h"
#include "SystemTime.h"
@@ -365,7 +366,8 @@
childrenChanged = true;
}
ImageLayerChromium* imageLayer = static_cast<ImageLayerChromium*>(m_contentsLayer.get());
- imageLayer->setContents(image);
+ NativeImageSkia* nativeImage = image->nativeImageForCurrentFrame();
+ imageLayer->setBitmap(nativeImage->bitmap());
imageLayer->setOpaque(image->isBitmapImage() && !image->currentFrameHasAlpha());
updateContentsRect();
} else {
« no previous file with comments | « WebCore/WebCore.gypi ('k') | WebCore/platform/graphics/chromium/ImageLayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698