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

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

Issue 1758023003: Move annotations to canvas virtual (patchset #8 id:140001 of https://codereview.chromium.org/174410… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: manual rebase 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
255 /** The SkDevice passed will be an SkDevice which was returned by a call to 257 /** The SkDevice passed will be an SkDevice which was returned by a call to
256 onCreateDevice on this device with kNeverTile_TileExpectation. 258 onCreateDevice on this device with kNeverTile_TileExpectation.
257 */ 259 */
258 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 260 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
259 const SkPaint&) = 0; 261 const SkPaint&) = 0;
260 262
261 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&, 263 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&,
262 const SkMatrix*, const SkPaint&); 264 const SkMatrix*, const SkPaint&);
263 265
264 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y ); 266 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
413 SkSurfaceProps fSurfaceProps; 415 SkSurfaceProps fSurfaceProps;
414 416
415 #ifdef SK_DEBUG 417 #ifdef SK_DEBUG
416 bool fAttachedToCanvas; 418 bool fAttachedToCanvas;
417 #endif 419 #endif
418 420
419 typedef SkRefCnt INHERITED; 421 typedef SkRefCnt INHERITED;
420 }; 422 };
421 423
422 #endif 424 #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