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

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

Issue 197123003: Proposed SkCanvas API for preLoading textures to VRAM v2.0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: address code review comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | src/core/SkPicture.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 @param byteLength The number of bytes to read from the text parameter 935 @param byteLength The number of bytes to read from the text parameter
936 @param path The path the text should follow for its baseline 936 @param path The path the text should follow for its baseline
937 @param matrix (may be null) Applied to the text before it is 937 @param matrix (may be null) Applied to the text before it is
938 mapped onto the path 938 mapped onto the path
939 @param paint The paint used for the text 939 @param paint The paint used for the text
940 */ 940 */
941 virtual void drawTextOnPath(const void* text, size_t byteLength, 941 virtual void drawTextOnPath(const void* text, size_t byteLength,
942 const SkPath& path, const SkMatrix* matrix, 942 const SkPath& path, const SkMatrix* matrix,
943 const SkPaint& paint); 943 const SkPaint& paint);
944 944
945 /** PRIVATE / EXPERIMENTAL -- do not call
946 Perform back-end analysis/optimization of a picture. This may attach
947 optimization data to the picture which can be used by a later
948 drawPicture call.
949 @param picture The recorded drawing commands to analyze/optimize
950 */
951 void EXPERIMENTAL_optimize(SkPicture* picture);
952
945 /** Draw the picture into this canvas. This method effective brackets the 953 /** Draw the picture into this canvas. This method effective brackets the
946 playback of the picture's draw calls with save/restore, so the state 954 playback of the picture's draw calls with save/restore, so the state
947 of this canvas will be unchanged after this call. 955 of this canvas will be unchanged after this call.
948 @param picture The recorded drawing commands to playback into this 956 @param picture The recorded drawing commands to playback into this
949 canvas. 957 canvas.
950 */ 958 */
951 virtual void drawPicture(SkPicture& picture); 959 virtual void drawPicture(SkPicture& picture);
952 960
953 enum VertexMode { 961 enum VertexMode {
954 kTriangles_VertexMode, 962 kTriangles_VertexMode,
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 bool asROBitmap(SkBitmap*) const; 1439 bool asROBitmap(SkBitmap*) const;
1432 1440
1433 private: 1441 private:
1434 SkBitmap fBitmap; // used if peekPixels() fails 1442 SkBitmap fBitmap; // used if peekPixels() fails
1435 const void* fAddr; // NULL on failure 1443 const void* fAddr; // NULL on failure
1436 SkImageInfo fInfo; 1444 SkImageInfo fInfo;
1437 size_t fRowBytes; 1445 size_t fRowBytes;
1438 }; 1446 };
1439 1447
1440 #endif 1448 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | src/core/SkPicture.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698