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

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

Issue 316173004: No longer limit SkPictureRecorder::partialReplay to Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 6 years, 6 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/core/SkPictureRecorder.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 SkPictureRecorder_DEFINED 8 #ifndef SkPictureRecorder_DEFINED
9 #define SkPictureRecorder_DEFINED 9 #define SkPictureRecorder_DEFINED
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 /** Enable/disable all the picture recording optimizations (i.e., 49 /** Enable/disable all the picture recording optimizations (i.e.,
50 those in SkPictureRecord). It is mainly intended for testing the 50 those in SkPictureRecord). It is mainly intended for testing the
51 existing optimizations (i.e., to actually have the pattern 51 existing optimizations (i.e., to actually have the pattern
52 appear in an .skp we have to disable the optimization). Call right 52 appear in an .skp we have to disable the optimization). Call right
53 after 'beginRecording'. 53 after 'beginRecording'.
54 */ 54 */
55 void internalOnly_EnableOpts(bool enableOpts); 55 void internalOnly_EnableOpts(bool enableOpts);
56 56
57 private: 57 private:
58 #ifdef SK_BUILD_FOR_ANDROID
59 /** Replay the current (partially recorded) operation stream into 58 /** Replay the current (partially recorded) operation stream into
60 canvas. This call doesn't close the current recording. 59 canvas. This call doesn't close the current recording.
61 */ 60 */
62 friend class AndroidPicture; 61 friend class AndroidPicture;
63 friend class SkPictureRecorderReplayTester; // for unit testing 62 friend class SkPictureRecorderReplayTester; // for unit testing
64 void partialReplay(SkCanvas* canvas) const; 63 void partialReplay(SkCanvas* canvas) const;
65 #endif
66 64
67 SkAutoTUnref<SkPicture> fPicture; 65 SkAutoTUnref<SkPicture> fPicture;
68 SkPictureRecord* fCanvas; // ref counted 66 SkPictureRecord* fCanvas; // ref counted
69 67
70 typedef SkNoncopyable INHERITED; 68 typedef SkNoncopyable INHERITED;
71 }; 69 };
72 70
73 #endif 71 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPictureRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698