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

Unified Diff: WebCore/platform/graphics/chromium/ImageLayerChromium.h

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
Index: WebCore/platform/graphics/chromium/ImageLayerChromium.h
===================================================================
--- WebCore/platform/graphics/chromium/ImageLayerChromium.h (revision 120960)
+++ WebCore/platform/graphics/chromium/ImageLayerChromium.h (working copy)
@@ -35,11 +35,10 @@
#if USE(ACCELERATED_COMPOSITING)
#include "ContentLayerChromium.h"
-#include "PlatformImage.h"
+#include "SkBitmap.h"
namespace WebCore {
-class Image;
class ImageLayerTextureUpdater;
// A Layer that contains only an Image element.
@@ -52,7 +51,7 @@
virtual void update(CCTextureUpdater&, const CCOcclusionTracker*) OVERRIDE;
virtual bool needsContentsScale() const OVERRIDE;
- void setContents(Image* image);
+ void setBitmap(const SkBitmap& image);
private:
ImageLayerChromium();
@@ -63,8 +62,7 @@
virtual void createTextureUpdaterIfNeeded() OVERRIDE;
virtual IntSize contentBounds() const OVERRIDE;
- NativeImagePtr m_imageForCurrentFrame;
- RefPtr<Image> m_contents;
+ SkBitmap m_bitmap;
RefPtr<ImageLayerTextureUpdater> m_textureUpdater;
};

Powered by Google App Engine
This is Rietveld 408576698