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

Side by Side Diff: src/record/SkRecordOpts.h

Issue 269813010: Add SaveLayer-Draw-Restore optimization. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: notes Created 6 years, 7 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 | « no previous file | src/record/SkRecordOpts.cpp » ('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 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 SkRecordOpts_DEFINED 8 #ifndef SkRecordOpts_DEFINED
9 #define SkRecordOpts_DEFINED 9 #define SkRecordOpts_DEFINED
10 10
11 #include "SkRecord.h" 11 #include "SkRecord.h"
12 12
13 // Run all optimizations in recommended order. 13 // Run all optimizations in recommended order.
14 void SkRecordOptimize(SkRecord*); 14 void SkRecordOptimize(SkRecord*);
15 15
16 16
17 // Turns logical no-op Save-[non-drawing command]*-Restore patterns into actual no-ops. 17 // Turns logical no-op Save-[non-drawing command]*-Restore patterns into actual no-ops.
18 void SkRecordNoopSaveRestores(SkRecord*); 18 void SkRecordNoopSaveRestores(SkRecord*);
19 19
20 // For some SaveLayer-[drawing command]-Restore patterns, merge the SaveLayer's alpha into the
21 // draw, and no-op the SaveLayer and Restore.
22 void SkRecordNoopSaveLayerDrawRestores(SkRecord*);
23
20 // Annotates PushCull commands with the relative offset of their paired PopCull. 24 // Annotates PushCull commands with the relative offset of their paired PopCull.
21 void SkRecordAnnotateCullingPairs(SkRecord*); 25 void SkRecordAnnotateCullingPairs(SkRecord*);
22 26
23 // Convert DrawPosText to DrawPosTextH when all the Y coordinates are equal. 27 // Convert DrawPosText to DrawPosTextH when all the Y coordinates are equal.
24 void SkRecordReduceDrawPosTextStrength(SkRecord*); 28 void SkRecordReduceDrawPosTextStrength(SkRecord*);
25 29
26 // Calculate min and max Y bounds for DrawPosTextH commands, for use with SkCanv as::quickRejectY. 30 // Calculate min and max Y bounds for DrawPosTextH commands, for use with SkCanv as::quickRejectY.
27 void SkRecordBoundDrawPosTextH(SkRecord*); 31 void SkRecordBoundDrawPosTextH(SkRecord*);
28 32
29 #endif//SkRecordOpts_DEFINED 33 #endif//SkRecordOpts_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/record/SkRecordOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698