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

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

Issue 324293004: Remove picture pre-allocation from SkPictureRecorder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix initializer list order 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 | « include/core/SkPicture.h ('k') | src/core/SkBBoxHierarchyRecord.h » ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void internalOnly_EnableOpts(bool enableOpts); 54 void internalOnly_EnableOpts(bool enableOpts);
55 55
56 private: 56 private:
57 /** Replay the current (partially recorded) operation stream into 57 /** Replay the current (partially recorded) operation stream into
58 canvas. This call doesn't close the current recording. 58 canvas. This call doesn't close the current recording.
59 */ 59 */
60 friend class AndroidPicture; 60 friend class AndroidPicture;
61 friend class SkPictureRecorderReplayTester; // for unit testing 61 friend class SkPictureRecorderReplayTester; // for unit testing
62 void partialReplay(SkCanvas* canvas) const; 62 void partialReplay(SkCanvas* canvas) const;
63 63
64 SkAutoTUnref<SkPicture> fPicture; 64 int fWidth;
65 int fHeight;
65 SkPictureRecord* fCanvas; // ref counted 66 SkPictureRecord* fCanvas; // ref counted
66 67
67 typedef SkNoncopyable INHERITED; 68 typedef SkNoncopyable INHERITED;
68 }; 69 };
69 70
70 #endif 71 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkBBoxHierarchyRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698