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

Unified Diff: Source/platform/graphics/ImageBufferSurface.h

Issue 379253002: Initial implementation of display list backed 2D canvases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 5 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 | « Source/platform/graphics/ImageBuffer.cpp ('k') | Source/platform/graphics/ImageBufferSurface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ImageBufferSurface.h
diff --git a/Source/platform/graphics/ImageBufferSurface.h b/Source/platform/graphics/ImageBufferSurface.h
index 17a81cb9c83800b307f1fcd04fd298b25feb9f45..dfef1ab4b67ee00ffb8e4140708f8951d64e3daf 100644
--- a/Source/platform/graphics/ImageBufferSurface.h
+++ b/Source/platform/graphics/ImageBufferSurface.h
@@ -36,9 +36,11 @@
#include "platform/graphics/GraphicsTypes3D.h"
#include "wtf/FastAllocBase.h"
#include "wtf/Noncopyable.h"
+#include "wtf/PassRefPtr.h"
-class SkCanvas;
class SkBitmap;
+class SkCanvas;
+class SkPicture;
namespace blink { class WebLayer; }
@@ -57,7 +59,7 @@ public:
virtual ~ImageBufferSurface() { }
virtual SkCanvas* canvas() const = 0;
- virtual const SkBitmap& bitmap() const;
+ virtual const SkBitmap& bitmap();
virtual void willUse() { } // Called by ImageBuffer before reading or writing to the surface.
virtual void willReadback() { }
virtual bool isValid() const = 0;
@@ -71,6 +73,8 @@ public:
virtual void updateCachedBitmapIfNeeded() { }
virtual void setIsHidden(bool) { }
virtual void setImageBuffer(ImageBuffer*) { }
+ virtual PassRefPtr<SkPicture> getPicture();
+ virtual void didClearCanvas() { }
OpacityMode opacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }
« no previous file with comments | « Source/platform/graphics/ImageBuffer.cpp ('k') | Source/platform/graphics/ImageBufferSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698