| Index: Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
|
| diff --git a/Source/core/rendering/LayoutRectRecorder.h b/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
|
| similarity index 68%
|
| copy from Source/core/rendering/LayoutRectRecorder.h
|
| copy to Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
|
| index c92eb5efc90d50bfbac57653cda3a1c84df4b4b2..1293abc3ac1303fbc27dc1eb8679b9ae4f870065 100644
|
| --- a/Source/core/rendering/LayoutRectRecorder.h
|
| +++ b/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h
|
| @@ -28,31 +28,30 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef LayoutRectRecorder_h
|
| -#define LayoutRectRecorder_h
|
| +#ifndef AcceleratedImageBufferSurface_h
|
| +#define AcceleratedImageBufferSurface_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 AcceleratedImageBufferSurface : public ImageBufferSurface {
|
| + WTF_MAKE_NONCOPYABLE(AcceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - LayoutRectRecorder(RenderObject&, bool skipRecording = false);
|
| - ~LayoutRectRecorder();
|
| + AcceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque, int msaaSampleCount = 0);
|
| + virtual ~AcceleratedImageBufferSurface() { }
|
|
|
| - static bool shouldRecordLayoutRects();
|
| + virtual SkCanvas* canvas() const OVERRIDE { return m_canvas.get();}
|
| + virtual bool isValid() const OVERRIDE { return m_canvas; }
|
| + virtual bool isAccelerated() const OVERRIDE { return true; }
|
| + virtual Platform3DObject getBackingTexture() const OVERRIDE;
|
|
|
| private:
|
| - RenderObject& m_object;
|
| - bool m_skipRecording;
|
| + OwnPtr<SkCanvas> m_canvas;
|
| };
|
|
|
| -} // namespace WebCore
|
|
|
| -#endif // LayoutRectRecorder_h
|
| +} // namespace WebCore
|
|
|
| +#endif
|
|
|