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

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

Issue 392383005: Make UnacceleratedBufferSurface use a SkSurface instead of a SkCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | Source/platform/graphics/UnacceleratedImageBufferSurface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/UnacceleratedImageBufferSurface.h
diff --git a/Source/platform/graphics/UnacceleratedImageBufferSurface.h b/Source/platform/graphics/UnacceleratedImageBufferSurface.h
index 407cdcbf31149beae3708c49d2048b569b1d86b1..afde20cb0ecb7f20a8a9f4363054dfff95ecc936 100644
--- a/Source/platform/graphics/UnacceleratedImageBufferSurface.h
+++ b/Source/platform/graphics/UnacceleratedImageBufferSurface.h
@@ -34,19 +34,21 @@
#include "platform/graphics/ImageBufferSurface.h"
#include "wtf/RefPtr.h"
+class SkSurface;
+
namespace WebCore {
class PLATFORM_EXPORT UnacceleratedImageBufferSurface : public ImageBufferSurface {
WTF_MAKE_NONCOPYABLE(UnacceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED;
public:
UnacceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque);
- virtual ~UnacceleratedImageBufferSurface() { }
+ virtual ~UnacceleratedImageBufferSurface();
- virtual SkCanvas* canvas() const OVERRIDE { return m_canvas.get(); }
- virtual bool isValid() const OVERRIDE { return m_canvas; }
+ virtual SkCanvas* canvas() const OVERRIDE;
+ virtual bool isValid() const OVERRIDE;
private:
- RefPtr<SkCanvas> m_canvas;
+ RefPtr<SkSurface> m_surface;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/platform/graphics/UnacceleratedImageBufferSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698