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

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

Issue 104023007: Refactoring ImageBuffer to decouple it from Canvas2DLayerBridge (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase mayhem Created 7 years 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: Source/platform/graphics/UnacceleratedImageBufferSurface.h
diff --git a/Source/core/rendering/LayoutRectRecorder.h b/Source/platform/graphics/UnacceleratedImageBufferSurface.h
similarity index 72%
copy from Source/core/rendering/LayoutRectRecorder.h
copy to Source/platform/graphics/UnacceleratedImageBufferSurface.h
index c92eb5efc90d50bfbac57653cda3a1c84df4b4b2..5ee66b49f46bd8623bc069959d716ced0a7b42df 100644
--- a/Source/core/rendering/LayoutRectRecorder.h
+++ b/Source/platform/graphics/UnacceleratedImageBufferSurface.h
@@ -28,31 +28,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef LayoutRectRecorder_h
-#define LayoutRectRecorder_h
+#ifndef UnacceleratedImageBufferSurface_h
+#define UnacceleratedImageBufferSurface_h
-#include "platform/geometry/LayoutRect.h"
-#include "wtf/Noncopyable.h"
+#include "platform/graphics/ImageBufferSurface.h"
+#include "wtf/OwnPtr.h"
namespace WebCore {
-class RenderLayerModelObject;
-class RenderObject;
-
-class LayoutRectRecorder {
- WTF_MAKE_NONCOPYABLE(LayoutRectRecorder);
+class PLATFORM_EXPORT UnacceleratedImageBufferSurface : public ImageBufferSurface {
+ WTF_MAKE_NONCOPYABLE(UnacceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED;
public:
- LayoutRectRecorder(RenderObject&, bool skipRecording = false);
- ~LayoutRectRecorder();
+ UnacceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque);
+ virtual ~UnacceleratedImageBufferSurface() { }
- static bool shouldRecordLayoutRects();
+ virtual SkCanvas* canvas() const OVERRIDE { return m_canvas.get(); }
+ virtual bool isValid() const OVERRIDE { return m_canvas; }
private:
- RenderObject& m_object;
- bool m_skipRecording;
+ OwnPtr<SkCanvas> m_canvas;
};
} // namespace WebCore
-#endif // LayoutRectRecorder_h
-
+#endif
« no previous file with comments | « Source/platform/graphics/ImageBufferSurface.cpp ('k') | Source/platform/graphics/UnacceleratedImageBufferSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698