| 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 BaseRenderingContext2D_h | 5 #ifndef BaseRenderingContext2D_h |
| 6 #define BaseRenderingContext2D_h | 6 #define BaseRenderingContext2D_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/UnionTypesCore.h" | 8 #include "bindings/core/v8/UnionTypesCore.h" |
| 9 #include "bindings/modules/v8/UnionTypesModules.h" | 9 #include "bindings/modules/v8/UnionTypesModules.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 virtual SkCanvas* drawingCanvas() const = 0; | 141 virtual SkCanvas* drawingCanvas() const = 0; |
| 142 virtual SkCanvas* existingDrawingCanvas() const = 0; | 142 virtual SkCanvas* existingDrawingCanvas() const = 0; |
| 143 virtual void disableDeferral(DisableDeferralReason) = 0; | 143 virtual void disableDeferral(DisableDeferralReason) = 0; |
| 144 | 144 |
| 145 virtual AffineTransform baseTransform() const = 0; | 145 virtual AffineTransform baseTransform() const = 0; |
| 146 | 146 |
| 147 virtual void didDraw(const SkIRect& dirtyRect) = 0; | 147 virtual void didDraw(const SkIRect& dirtyRect) = 0; |
| 148 | 148 |
| 149 virtual bool stateHasFilter() = 0; | 149 virtual bool stateHasFilter() = 0; |
| 150 virtual SkImageFilter* stateGetFilter() = 0; | 150 virtual SkImageFilter* stateGetFilter() = 0; |
| 151 virtual void snapshotStateForFilter() = 0; |
| 151 | 152 |
| 152 virtual void validateStateStack() = 0; | 153 virtual void validateStateStack() = 0; |
| 153 | 154 |
| 154 virtual bool hasAlpha() const = 0; | 155 virtual bool hasAlpha() const = 0; |
| 155 | 156 |
| 156 virtual bool isContextLost() const = 0; | 157 virtual bool isContextLost() const = 0; |
| 157 | 158 |
| 158 DECLARE_VIRTUAL_TRACE(); | 159 DECLARE_VIRTUAL_TRACE(); |
| 159 | 160 |
| 160 protected: | 161 protected: |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 foregroundPaint.setXfermodeMode(SkXfermode::kSrcOver_Mode); | 283 foregroundPaint.setXfermodeMode(SkXfermode::kSrcOver_Mode); |
| 283 c->setMatrix(ctm); | 284 c->setMatrix(ctm); |
| 284 drawFunc(c, &foregroundPaint); | 285 drawFunc(c, &foregroundPaint); |
| 285 c->restore(); | 286 c->restore(); |
| 286 c->setMatrix(ctm); | 287 c->setMatrix(ctm); |
| 287 } | 288 } |
| 288 | 289 |
| 289 } // namespace blink | 290 } // namespace blink |
| 290 | 291 |
| 291 #endif // BaseRenderingContext2D_h | 292 #endif // BaseRenderingContext2D_h |
| OLD | NEW |