OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef RecordingImageBufferSurface_h | 5 #ifndef RecordingImageBufferSurface_h |
6 #define RecordingImageBufferSurface_h | 6 #define RecordingImageBufferSurface_h |
7 | 7 |
8 #include "platform/graphics/ImageBufferSurface.h" | 8 #include "platform/graphics/ImageBufferSurface.h" |
9 #include "wtf/OwnPtr.h" | 9 #include "wtf/OwnPtr.h" |
10 #include "wtf/RefPtr.h" | 10 #include "wtf/RefPtr.h" |
11 | 11 |
12 class SkPicture; | 12 class SkPicture; |
13 class SkPictureRecorder; | 13 class SkPictureRecorder; |
14 class RecordingImageBufferSurfaceTest; | 14 class RecordingImageBufferSurfaceTest; |
15 | 15 |
16 namespace WebCore { | 16 namespace blink { |
17 | 17 |
18 class GraphicsContext; | 18 class GraphicsContext; |
19 | 19 |
20 class PLATFORM_EXPORT RecordingImageBufferSurface : public ImageBufferSurface { | 20 class PLATFORM_EXPORT RecordingImageBufferSurface : public ImageBufferSurface { |
21 WTF_MAKE_NONCOPYABLE(RecordingImageBufferSurface); WTF_MAKE_FAST_ALLOCATED; | 21 WTF_MAKE_NONCOPYABLE(RecordingImageBufferSurface); WTF_MAKE_FAST_ALLOCATED; |
22 public: | 22 public: |
23 RecordingImageBufferSurface(const IntSize&, OpacityMode = NonOpaque); | 23 RecordingImageBufferSurface(const IntSize&, OpacityMode = NonOpaque); |
24 virtual ~RecordingImageBufferSurface(); | 24 virtual ~RecordingImageBufferSurface(); |
25 | 25 |
26 // Implementation of ImageBufferSurface interfaces | 26 // Implementation of ImageBufferSurface interfaces |
(...skipping 13 matching lines...) Expand all Loading... |
40 | 40 |
41 OwnPtr<SkPictureRecorder> m_currentFrame; | 41 OwnPtr<SkPictureRecorder> m_currentFrame; |
42 RefPtr<SkPicture> m_previousFrame; | 42 RefPtr<SkPicture> m_previousFrame; |
43 OwnPtr<SkCanvas> m_rasterCanvas; | 43 OwnPtr<SkCanvas> m_rasterCanvas; |
44 GraphicsContext* m_graphicsContext; | 44 GraphicsContext* m_graphicsContext; |
45 int m_initialSaveCount; | 45 int m_initialSaveCount; |
46 bool m_frameWasCleared; | 46 bool m_frameWasCleared; |
47 bool m_surfaceUsedSincePreviousFrameWasPresented; | 47 bool m_surfaceUsedSincePreviousFrameWasPresented; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace WebCore | 50 } // namespace blink |
51 | 51 |
52 #endif | 52 #endif |
OLD | NEW |