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 "public/platform/WebThread.h" | 9 #include "public/platform/WebThread.h" |
10 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual SkCanvas* canvas() const override; | 36 virtual SkCanvas* canvas() const override; |
37 virtual PassRefPtr<SkPicture> getPicture() override; | 37 virtual PassRefPtr<SkPicture> getPicture() override; |
38 virtual void willDrawVideo() override; | 38 virtual void willDrawVideo() override; |
39 virtual bool isValid() const override { return true; } | 39 virtual bool isValid() const override { return true; } |
40 virtual void willAccessPixels() override; | 40 virtual void willAccessPixels() override; |
41 virtual void finalizeFrame(const FloatRect&) override; | 41 virtual void finalizeFrame(const FloatRect&) override; |
42 virtual void didClearCanvas() override; | 42 virtual void didClearCanvas() override; |
43 virtual void setImageBuffer(ImageBuffer*) override; | 43 virtual void setImageBuffer(ImageBuffer*) override; |
44 virtual PassRefPtr<SkImage> newImageSnapshot() const override; | 44 virtual PassRefPtr<SkImage> newImageSnapshot() const override; |
45 virtual bool needsClipTracking() const override { return !m_fallbackSurface;
} | 45 virtual bool needsClipTracking() const override { return !m_fallbackSurface;
} |
| 46 virtual void draw(GraphicsContext*, const FloatRect& destRect, const FloatRe
ct& srcRect, CompositeOperator, WebBlendMode, bool needsCopy) override; |
46 | 47 |
47 // Passthroughs to fallback surface | 48 // Passthroughs to fallback surface |
48 virtual const SkBitmap& bitmap() override; | 49 virtual const SkBitmap& bitmap() override; |
49 virtual bool restore() override; | 50 virtual bool restore() override; |
50 virtual WebLayer* layer() const override; | 51 virtual WebLayer* layer() const override; |
51 virtual bool isAccelerated() const override; | 52 virtual bool isAccelerated() const override; |
52 virtual Platform3DObject getBackingTexture() const override; | 53 virtual Platform3DObject getBackingTexture() const override; |
53 virtual bool cachedBitmapEnabled() const override; | 54 virtual bool cachedBitmapEnabled() const override; |
54 virtual const SkBitmap& cachedBitmap() const override; | 55 virtual const SkBitmap& cachedBitmap() const override; |
55 virtual void invalidateCachedBitmap() override; | 56 virtual void invalidateCachedBitmap() override; |
(...skipping 11 matching lines...) Expand all Loading... |
67 OwnPtr<ImageBufferSurface> m_fallbackSurface; | 68 OwnPtr<ImageBufferSurface> m_fallbackSurface; |
68 ImageBuffer* m_imageBuffer; | 69 ImageBuffer* m_imageBuffer; |
69 int m_initialSaveCount; | 70 int m_initialSaveCount; |
70 bool m_frameWasCleared; | 71 bool m_frameWasCleared; |
71 OwnPtr<RecordingImageBufferFallbackSurfaceFactory> m_fallbackFactory; | 72 OwnPtr<RecordingImageBufferFallbackSurfaceFactory> m_fallbackFactory; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace blink | 75 } // namespace blink |
75 | 76 |
76 #endif | 77 #endif |
OLD | NEW |