| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2006 The Android Open Source Project | 2  * Copyright 2006 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 SkCanvas_DEFINED | 8 #ifndef SkCanvas_DEFINED | 
| 9 #define SkCanvas_DEFINED | 9 #define SkCanvas_DEFINED | 
| 10 | 10 | 
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 955         @param byteLength   The number of bytes to read from the text parameter | 955         @param byteLength   The number of bytes to read from the text parameter | 
| 956         @param path         The path the text should follow for its baseline | 956         @param path         The path the text should follow for its baseline | 
| 957         @param matrix       (may be null) Applied to the text before it is | 957         @param matrix       (may be null) Applied to the text before it is | 
| 958                             mapped onto the path | 958                             mapped onto the path | 
| 959         @param paint        The paint used for the text | 959         @param paint        The paint used for the text | 
| 960         */ | 960         */ | 
| 961     virtual void drawTextOnPath(const void* text, size_t byteLength, | 961     virtual void drawTextOnPath(const void* text, size_t byteLength, | 
| 962                                 const SkPath& path, const SkMatrix* matrix, | 962                                 const SkPath& path, const SkMatrix* matrix, | 
| 963                                 const SkPaint& paint); | 963                                 const SkPaint& paint); | 
| 964 | 964 | 
|  | 965     /** PRIVATE / EXPERIMENTAL -- do not call | 
|  | 966         Perform back-end analysis/optimization of a picture. This may attach | 
|  | 967         optimization data to the picture which can be used by a later | 
|  | 968         drawPicture call. | 
|  | 969         @param picture The recorded drawing commands to analyze/optimize | 
|  | 970     */ | 
|  | 971     void EXPERIMENTAL_optimize(SkPicture* picture); | 
|  | 972 | 
| 965     /** Draw the picture into this canvas. This method effective brackets the | 973     /** Draw the picture into this canvas. This method effective brackets the | 
| 966         playback of the picture's draw calls with save/restore, so the state | 974         playback of the picture's draw calls with save/restore, so the state | 
| 967         of this canvas will be unchanged after this call. | 975         of this canvas will be unchanged after this call. | 
| 968         @param picture The recorded drawing commands to playback into this | 976         @param picture The recorded drawing commands to playback into this | 
| 969                        canvas. | 977                        canvas. | 
| 970     */ | 978     */ | 
| 971     virtual void drawPicture(SkPicture& picture); | 979     virtual void drawPicture(SkPicture& picture); | 
| 972 | 980 | 
| 973     enum VertexMode { | 981     enum VertexMode { | 
| 974         kTriangles_VertexMode, | 982         kTriangles_VertexMode, | 
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1465     bool asROBitmap(SkBitmap*) const; | 1473     bool asROBitmap(SkBitmap*) const; | 
| 1466 | 1474 | 
| 1467 private: | 1475 private: | 
| 1468     SkBitmap    fBitmap;    // used if peekPixels() fails | 1476     SkBitmap    fBitmap;    // used if peekPixels() fails | 
| 1469     const void* fAddr;      // NULL on failure | 1477     const void* fAddr;      // NULL on failure | 
| 1470     SkImageInfo fInfo; | 1478     SkImageInfo fInfo; | 
| 1471     size_t      fRowBytes; | 1479     size_t      fRowBytes; | 
| 1472 }; | 1480 }; | 
| 1473 | 1481 | 
| 1474 #endif | 1482 #endif | 
| OLD | NEW | 
|---|