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

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

Issue 616033002: Clean up SK_PICTURE_USE_SK_RECORD and SK_PICTURE_OPTIMIZE_SK_RECORD. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « gyp/common_conditions.gypi ('k') | src/core/SkPicture.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 @param height the height of the cull rect used when recording this pictu re. 42 @param height the height of the cull rect used when recording this pictu re.
43 @param bbhFactory factory to create desired acceleration structure 43 @param bbhFactory factory to create desired acceleration structure
44 @param recordFlags optional flags that control recording. 44 @param recordFlags optional flags that control recording.
45 @return the canvas. 45 @return the canvas.
46 */ 46 */
47 SkCanvas* beginRecording(SkScalar width, SkScalar height, 47 SkCanvas* beginRecording(SkScalar width, SkScalar height,
48 SkBBHFactory* bbhFactory = NULL, 48 SkBBHFactory* bbhFactory = NULL,
49 uint32_t recordFlags = 0); 49 uint32_t recordFlags = 0);
50 50
51 // As usual, we have a deprecated old version and a maybe almost working 51 // As usual, we have a deprecated old version and a maybe almost working
52 // new version. We currently point beginRecording() to 52 // new version. We currently point beginRecording() to EXPERIMENTAL_beginRe cording().
53 // DEPRECATED_beginRecording() unless SK_PICTURE_USE_SK_RECORD is defined,
54 // then we use EXPERIMENTAL_beginRecording().
55 53
56 // Old slower backend. 54 // Old slower backend.
57 SkCanvas* DEPRECATED_beginRecording(SkScalar width, SkScalar height, 55 SkCanvas* DEPRECATED_beginRecording(SkScalar width, SkScalar height,
58 SkBBHFactory* bbhFactory = NULL, 56 SkBBHFactory* bbhFactory = NULL,
59 uint32_t recordFlags = 0); 57 uint32_t recordFlags = 0);
60 58
61 // New faster backend. 59 // New faster backend.
62 SkCanvas* EXPERIMENTAL_beginRecording(SkScalar width, SkScalar height, 60 SkCanvas* EXPERIMENTAL_beginRecording(SkScalar width, SkScalar height,
63 SkBBHFactory* bbhFactory = NULL); 61 SkBBHFactory* bbhFactory = NULL);
64 62
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 SkAutoTUnref<SkPictureRecord> fPictureRecord; // beginRecording() 100 SkAutoTUnref<SkPictureRecord> fPictureRecord; // beginRecording()
103 SkAutoTUnref<SkRecorder> fRecorder; // EXPERIMENTAL_beginRecordin g() 101 SkAutoTUnref<SkRecorder> fRecorder; // EXPERIMENTAL_beginRecordin g()
104 102
105 // Used by EXPERIMENTAL_beginRecording(). 103 // Used by EXPERIMENTAL_beginRecording().
106 SkAutoTDelete<SkRecord> fRecord; 104 SkAutoTDelete<SkRecord> fRecord;
107 105
108 typedef SkNoncopyable INHERITED; 106 typedef SkNoncopyable INHERITED;
109 }; 107 };
110 108
111 #endif 109 #endif
OLDNEW
« no previous file with comments | « gyp/common_conditions.gypi ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698