| Index: Source/platform/graphics/UnacceleratedImageBufferSurface.h
|
| diff --git a/Source/core/rendering/LayoutRectRecorder.h b/Source/platform/graphics/UnacceleratedImageBufferSurface.h
|
| similarity index 71%
|
| copy from Source/core/rendering/LayoutRectRecorder.h
|
| copy to Source/platform/graphics/UnacceleratedImageBufferSurface.h
|
| index 9fd331e2aca95cb262bbbd4e738d3b78286caa2d..56e782365d33eabb5de4f117eb984c4a238133cc 100644
|
| --- a/Source/core/rendering/LayoutRectRecorder.h
|
| +++ b/Source/platform/graphics/UnacceleratedImageBufferSurface.h
|
| @@ -28,32 +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 UnacceleratedImageBufferSurface : public ImageBufferSurface {
|
| + WTF_MAKE_NONCOPYABLE(UnacceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - LayoutRectRecorder(RenderObject&, bool skipRecording = false);
|
| - ~LayoutRectRecorder();
|
| + UnacceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque, float resolutionScale = 1.0f);
|
| + 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;
|
| - RenderLayerModelObject* m_repaintContainer;
|
| - unsigned m_skipRecording : 1;
|
| + OwnPtr<SkCanvas> m_canvas;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // LayoutRectRecorder_h
|
| -
|
| +#endif
|
|
|