2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkRecordOpts_DEFINED
9 #define SkRecordOpts_DEFINED
13 // Run all optimizations in recommended order.
14 void SkRecordOptimize(SkRecord*);
16 // Turns logical no-op Save-[non-drawing command]*-Restore patterns into actual no-ops.
17 void SkRecordNoopSaveRestores(SkRecord*);
19 // For some SaveLayer-[drawing command]-Restore patterns, merge the SaveLayer's alpha into the
20 // draw, and no-op the SaveLayer and Restore.
21 void SkRecordNoopSaveLayerDrawRestores(SkRecord*);
23 #endif//SkRecordOpts_DEFINED