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

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

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 10 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/SkPicture.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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // default implementation calls drawVertices 229 // default implementation calls drawVertices
230 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4], 230 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4],
231 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); 231 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
232 /** The SkDevice passed will be an SkDevice which was returned by a call to 232 /** The SkDevice passed will be an SkDevice which was returned by a call to
233 onCreateCompatibleDevice on this device with kSaveLayer_Usage. 233 onCreateCompatibleDevice on this device with kSaveLayer_Usage.
234 */ 234 */
235 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 235 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
236 const SkPaint&) = 0; 236 const SkPaint&) = 0;
237 237
238 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&, 238 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&,
239 const SkMatrix*, const SkPaint&); 239 const SkMatrix*, SK_SUPPORT_LEGACY_DRAWTEXTONPAT H_PARAM
240 const SkPaint&);
240 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y ); 241 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y );
241 242
242 /////////////////////////////////////////////////////////////////////////// 243 ///////////////////////////////////////////////////////////////////////////
243 244
244 /** Update as needed the pixel value in the bitmap, so that the caller can 245 /** Update as needed the pixel value in the bitmap, so that the caller can
245 access the pixels directly. 246 access the pixels directly.
246 @return The device contents as a bitmap 247 @return The device contents as a bitmap
247 */ 248 */
248 virtual const SkBitmap& onAccessBitmap() = 0; 249 virtual const SkBitmap& onAccessBitmap() = 0;
249 250
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 SkDeviceProperties* fLeakyProperties; // will always exist. 390 SkDeviceProperties* fLeakyProperties; // will always exist.
390 391
391 #ifdef SK_DEBUG 392 #ifdef SK_DEBUG
392 bool fAttachedToCanvas; 393 bool fAttachedToCanvas;
393 #endif 394 #endif
394 395
395 typedef SkRefCnt INHERITED; 396 typedef SkRefCnt INHERITED;
396 }; 397 };
397 398
398 #endif 399 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698