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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 void addHitRegion(const HitRegionOptions&, ExceptionState&); | 133 void addHitRegion(const HitRegionOptions&, ExceptionState&); |
134 void removeHitRegion(const String& id); | 134 void removeHitRegion(const String& id); |
135 void clearHitRegions(); | 135 void clearHitRegions(); |
136 HitRegion* hitRegionAtPoint(const FloatPoint&); | 136 HitRegion* hitRegionAtPoint(const FloatPoint&); |
137 unsigned hitRegionsCount() const override; | 137 unsigned hitRegionsCount() const override; |
138 | 138 |
139 void loseContext(LostContextMode) override; | 139 void loseContext(LostContextMode) override; |
140 void didSetSurfaceSize() override; | 140 void didSetSurfaceSize() override; |
141 | 141 |
142 void restoreCanvasMatrixClipStack(SkCanvas*) const override; | 142 void restoreCanvasMatrixClipStack(PaintCanvas*) const override; |
143 | 143 |
144 // TaskObserver implementation | 144 // TaskObserver implementation |
145 void didProcessTask() override; | 145 void didProcessTask() override; |
146 void willProcessTask() override {} | 146 void willProcessTask() override {} |
147 | 147 |
148 void styleDidChange(const ComputedStyle* oldStyle, | 148 void styleDidChange(const ComputedStyle* oldStyle, |
149 const ComputedStyle& newStyle) override; | 149 const ComputedStyle& newStyle) override; |
150 HitTestCanvasResult* getControlAndIdIfHitRegionExists( | 150 HitTestCanvasResult* getControlAndIdIfHitRegionExists( |
151 const LayoutPoint& location) override; | 151 const LayoutPoint& location) override; |
152 String getIdFromControl(const Element*) override; | 152 String getIdFromControl(const Element*) override; |
(...skipping 14 matching lines...) Expand all Loading... |
167 } | 167 } |
168 | 168 |
169 int width() const final; | 169 int width() const final; |
170 int height() const final; | 170 int height() const final; |
171 | 171 |
172 bool hasImageBuffer() const final; | 172 bool hasImageBuffer() const final; |
173 ImageBuffer* imageBuffer() const final; | 173 ImageBuffer* imageBuffer() const final; |
174 | 174 |
175 bool parseColorOrCurrentColor(Color&, const String& colorString) const final; | 175 bool parseColorOrCurrentColor(Color&, const String& colorString) const final; |
176 | 176 |
177 SkCanvas* drawingCanvas() const final; | 177 PaintCanvas* drawingCanvas() const final; |
178 SkCanvas* existingDrawingCanvas() const final; | 178 PaintCanvas* existingDrawingCanvas() const final; |
179 void disableDeferral(DisableDeferralReason) final; | 179 void disableDeferral(DisableDeferralReason) final; |
180 | 180 |
181 AffineTransform baseTransform() const final; | 181 AffineTransform baseTransform() const final; |
182 void didDraw(const SkIRect& dirtyRect) final; | 182 void didDraw(const SkIRect& dirtyRect) final; |
183 | 183 |
184 bool stateHasFilter() final; | 184 bool stateHasFilter() final; |
185 sk_sp<SkImageFilter> stateGetFilter() final; | 185 sk_sp<SkImageFilter> stateGetFilter() final; |
186 void snapshotStateForFilter() final; | 186 void snapshotStateForFilter() final; |
187 | 187 |
188 void validateStateStack() const final; | 188 void validateStateStack() const final; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 263 |
264 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 264 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
265 CanvasRenderingContext, | 265 CanvasRenderingContext, |
266 context, | 266 context, |
267 context->is2d() && context->canvas(), | 267 context->is2d() && context->canvas(), |
268 context.is2d() && context.canvas()); | 268 context.is2d() && context.canvas()); |
269 | 269 |
270 } // namespace blink | 270 } // namespace blink |
271 | 271 |
272 #endif // CanvasRenderingContext2D_h | 272 #endif // CanvasRenderingContext2D_h |
OLD | NEW |