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

Side by Side Diff: src/core/SkRecorder.h

Issue 474983002: SkRecordDraw: incorporate clip into BBH (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: sign comparison Created 6 years, 4 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 | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.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 SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 103 void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
104 void onPopCull() SK_OVERRIDE; 104 void onPopCull() SK_OVERRIDE;
105 105
106 private: 106 private:
107 template <typename T> 107 template <typename T>
108 T* copy(const T*); 108 T* copy(const T*);
109 109
110 template <typename T> 110 template <typename T>
111 T* copy(const T[], size_t count); 111 T* copy(const T[], size_t count);
112 112
113 SkIRect devBounds() const {
114 SkIRect devBounds;
115 this->getClipDeviceBounds(&devBounds);
116 return devBounds;
117 }
118
113 SkRecord* fRecord; 119 SkRecord* fRecord;
114 }; 120 };
115 121
116 #endif//SkRecorder_DEFINED 122 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698