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

Unified Diff: cc/SkPictureCanvasLayerTextureUpdater.h

Issue 10915065: Add PlatformPictureSkia and RecordingPlatformDeviceSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsPlatformPaintSupported(), update comment in WebPluginDelegateProxy::Paint and require direct … Created 8 years, 3 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: cc/SkPictureCanvasLayerTextureUpdater.h
diff --git a/cc/SkPictureCanvasLayerTextureUpdater.h b/cc/SkPictureCanvasLayerTextureUpdater.h
index fd9bb5fccd170383de814df2c0b61b11d2777a55..b31705778630790944115cd917bdb0ce6914e4b2 100644
--- a/cc/SkPictureCanvasLayerTextureUpdater.h
+++ b/cc/SkPictureCanvasLayerTextureUpdater.h
@@ -9,10 +9,13 @@
#if USE(ACCELERATED_COMPOSITING)
#include "CanvasLayerTextureUpdater.h"
-#include "SkPicture.h"
class SkCanvas;
+namespace skia {
+class PlatformPictureSkia;
+}
+
namespace cc {
class LayerPainterChromium;
@@ -32,13 +35,13 @@ protected:
explicit SkPictureCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium>);
virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tileSize, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpaqueRect, CCRenderingStats&) OVERRIDE;
- void drawPicture(SkCanvas*);
+ void drawPictureInto(SkCanvas*);
bool layerIsOpaque() const { return m_layerIsOpaque; }
private:
// Recording canvas.
- SkPicture m_picture;
+ OwnPtr<skia::PlatformPictureSkia> m_picture;
// True when it is known that all output pixels will be opaque.
bool m_layerIsOpaque;
};

Powered by Google App Engine
This is Rietveld 408576698