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

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

Issue 233663002: Update bench to be able to preprocess skps (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add missing file Created 6 years, 8 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/gpu/SkGpuDevice.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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 const SkPaint& paint); 925 const SkPaint& paint);
926 926
927 /** PRIVATE / EXPERIMENTAL -- do not call 927 /** PRIVATE / EXPERIMENTAL -- do not call
928 Perform back-end analysis/optimization of a picture. This may attach 928 Perform back-end analysis/optimization of a picture. This may attach
929 optimization data to the picture which can be used by a later 929 optimization data to the picture which can be used by a later
930 drawPicture call. 930 drawPicture call.
931 @param picture The recorded drawing commands to analyze/optimize 931 @param picture The recorded drawing commands to analyze/optimize
932 */ 932 */
933 void EXPERIMENTAL_optimize(SkPicture* picture); 933 void EXPERIMENTAL_optimize(SkPicture* picture);
934 934
935 /** PRIVATE / EXPERIMENTAL -- do not call
936 Purge all the discardable optimization information associated with
937 'picture'. If NULL is passed in, purge all discardable information.
938 */
939 void EXPERIMENTAL_purge(SkPicture* picture);
940
935 /** Draw the picture into this canvas. This method effective brackets the 941 /** Draw the picture into this canvas. This method effective brackets the
936 playback of the picture's draw calls with save/restore, so the state 942 playback of the picture's draw calls with save/restore, so the state
937 of this canvas will be unchanged after this call. 943 of this canvas will be unchanged after this call.
938 @param picture The recorded drawing commands to playback into this 944 @param picture The recorded drawing commands to playback into this
939 canvas. 945 canvas.
940 */ 946 */
941 virtual void drawPicture(SkPicture& picture); 947 virtual void drawPicture(SkPicture& picture);
942 948
943 enum VertexMode { 949 enum VertexMode {
944 kTriangles_VertexMode, 950 kTriangles_VertexMode,
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 bool asROBitmap(SkBitmap*) const; 1435 bool asROBitmap(SkBitmap*) const;
1430 1436
1431 private: 1437 private:
1432 SkBitmap fBitmap; // used if peekPixels() fails 1438 SkBitmap fBitmap; // used if peekPixels() fails
1433 const void* fAddr; // NULL on failure 1439 const void* fAddr; // NULL on failure
1434 SkImageInfo fInfo; 1440 SkImageInfo fInfo;
1435 size_t fRowBytes; 1441 size_t fRowBytes;
1436 }; 1442 };
1437 1443
1438 #endif 1444 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | src/gpu/SkGpuDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698