OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 bool parseColorOrCurrentColor(Color&, const String& colorString) const final; | 172 bool parseColorOrCurrentColor(Color&, const String& colorString) const final; |
173 | 173 |
174 SkCanvas* drawingCanvas() const final; | 174 SkCanvas* drawingCanvas() const final; |
175 SkCanvas* existingDrawingCanvas() const final; | 175 SkCanvas* existingDrawingCanvas() const final; |
176 void disableDeferral(DisableDeferralReason) final; | 176 void disableDeferral(DisableDeferralReason) final; |
177 | 177 |
178 AffineTransform baseTransform() const final; | 178 AffineTransform baseTransform() const final; |
179 void didDraw(const SkIRect& dirtyRect) final; | 179 void didDraw(const SkIRect& dirtyRect) final; |
180 | 180 |
181 bool stateHasFilter() final; | 181 bool stateHasFilter() final; |
182 SkImageFilter* stateGetFilter() final; | 182 sk_sp<SkImageFilter> stateGetFilter() final; |
183 void snapshotStateForFilter() final; | 183 void snapshotStateForFilter() final; |
184 | 184 |
185 void validateStateStack() const final; | 185 void validateStateStack() const final; |
186 | 186 |
187 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const final; | 187 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const final; |
188 | 188 |
189 bool isAccelerationOptimalForCanvasContent() const; | 189 bool isAccelerationOptimalForCanvasContent() const; |
190 | 190 |
191 void resetUsageTracking(); | 191 void resetUsageTracking(); |
192 | 192 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 258 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
259 CanvasRenderingContext, | 259 CanvasRenderingContext, |
260 context, | 260 context, |
261 context->is2d() && context->canvas(), | 261 context->is2d() && context->canvas(), |
262 context.is2d() && context.canvas()); | 262 context.is2d() && context.canvas()); |
263 | 263 |
264 } // namespace blink | 264 } // namespace blink |
265 | 265 |
266 #endif // CanvasRenderingContext2D_h | 266 #endif // CanvasRenderingContext2D_h |
OLD | NEW |