| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 PaintRenderingContext2D_h | 5 #ifndef PaintRenderingContext2D_h |
| 6 #define PaintRenderingContext2D_h | 6 #define PaintRenderingContext2D_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "modules/canvas2d/BaseRenderingContext2D.h" | 10 #include "modules/canvas2d/BaseRenderingContext2D.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 AffineTransform baseTransform() const final; | 49 AffineTransform baseTransform() const final; |
| 50 | 50 |
| 51 void didDraw(const SkIRect& dirtyRect) final; | 51 void didDraw(const SkIRect& dirtyRect) final; |
| 52 | 52 |
| 53 // TODO(ikilpatrick): We'll need to either only accept resolved filters | 53 // TODO(ikilpatrick): We'll need to either only accept resolved filters |
| 54 // from a typed-om <filter> object, or use the appropriate style resolution | 54 // from a typed-om <filter> object, or use the appropriate style resolution |
| 55 // host to determine 'em' units etc in filters. At the moment just pretend | 55 // host to determine 'em' units etc in filters. At the moment just pretend |
| 56 // that we don't have a filter set. | 56 // that we don't have a filter set. |
| 57 bool stateHasFilter() final { return false; } | 57 bool stateHasFilter() final { return false; } |
| 58 SkImageFilter* stateGetFilter() final { return nullptr; } | 58 SkImageFilter* stateGetFilter() final { return nullptr; } |
| 59 void snapshotStateForFilter() final { } |
| 59 | 60 |
| 60 void validateStateStack() final; | 61 void validateStateStack() final; |
| 61 | 62 |
| 62 bool hasAlpha() const final { return true; } | 63 bool hasAlpha() const final { return true; } |
| 63 | 64 |
| 64 // PaintRenderingContext2D cannot lose it's context. | 65 // PaintRenderingContext2D cannot lose it's context. |
| 65 bool isContextLost() const final { return false; } | 66 bool isContextLost() const final { return false; } |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>); | 69 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>); |
| 69 | 70 |
| 70 OwnPtr<ImageBuffer> m_imageBuffer; | 71 OwnPtr<ImageBuffer> m_imageBuffer; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace blink | 74 } // namespace blink |
| 74 | 75 |
| 75 #endif // PaintRenderingContext2D_h | 76 #endif // PaintRenderingContext2D_h |
| OLD | NEW |