Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Side by Side Diff: include/core/SkDevice.h

Issue 1761793003: Revert of move annotations to canvas virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPaint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y, 245 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y,
246 const SkPaint& paint, SkDrawFilter* drawFilter); 246 const SkPaint& paint, SkDrawFilter* drawFilter);
247 // default implementation calls drawVertices 247 // default implementation calls drawVertices
248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4], 248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4],
249 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); 249 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
250 250
251 // default implementation calls drawPath 251 // default implementation calls drawPath
252 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[ ], const SkRect[], 252 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[ ], const SkRect[],
253 const SkColor[], int count, SkXfermode::Mode, const S kPaint&); 253 const SkColor[], int count, SkXfermode::Mode, const S kPaint&);
254 254
255 virtual void drawAnnotation(const SkDraw&, const SkRect&, const char[], SkDa ta*) {}
256
257 /** The SkDevice passed will be an SkDevice which was returned by a call to 255 /** The SkDevice passed will be an SkDevice which was returned by a call to
258 onCreateDevice on this device with kNeverTile_TileExpectation. 256 onCreateDevice on this device with kNeverTile_TileExpectation.
259 */ 257 */
260 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 258 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
261 const SkPaint&) = 0; 259 const SkPaint&) = 0;
262 260
263 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&, 261 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&,
264 const SkMatrix*, const SkPaint&); 262 const SkMatrix*, const SkPaint&);
265 263
266 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y ); 264 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y );
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 SkSurfaceProps fSurfaceProps; 413 SkSurfaceProps fSurfaceProps;
416 414
417 #ifdef SK_DEBUG 415 #ifdef SK_DEBUG
418 bool fAttachedToCanvas; 416 bool fAttachedToCanvas;
419 #endif 417 #endif
420 418
421 typedef SkRefCnt INHERITED; 419 typedef SkRefCnt INHERITED;
422 }; 420 };
423 421
424 #endif 422 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698