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

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

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/SkRecordPattern.h ('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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[], 115 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[],
116 int count, SkXfermode::Mode, const SkRect* cull, const SkPa int*) override; 116 int count, SkXfermode::Mode, const SkRect* cull, const SkPa int*) override;
117 117
118 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 118 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override;
119 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override; 119 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override;
120 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 120 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override;
121 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override; 121 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override;
122 122
123 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 123 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
124 124
125 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override { return NULL; } 125 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override { return nullptr; }
126 126
127 void flushMiniRecorder(); 127 void flushMiniRecorder();
128 128
129 private: 129 private:
130 template <typename T> 130 template <typename T>
131 T* copy(const T*); 131 T* copy(const T*);
132 132
133 template <typename T> 133 template <typename T>
134 T* copy(const T[], size_t count); 134 T* copy(const T[], size_t count);
135 135
136 SkIRect devBounds() const { 136 SkIRect devBounds() const {
137 SkIRect devBounds; 137 SkIRect devBounds;
138 this->getClipDeviceBounds(&devBounds); 138 this->getClipDeviceBounds(&devBounds);
139 return devBounds; 139 return devBounds;
140 } 140 }
141 141
142 DrawPictureMode fDrawPictureMode; 142 DrawPictureMode fDrawPictureMode;
143 size_t fApproxBytesUsedBySubPictures; 143 size_t fApproxBytesUsedBySubPictures;
144 SkRecord* fRecord; 144 SkRecord* fRecord;
145 SkAutoTDelete<SkDrawableList> fDrawableList; 145 SkAutoTDelete<SkDrawableList> fDrawableList;
146 146
147 SkMiniRecorder* fMiniRecorder; 147 SkMiniRecorder* fMiniRecorder;
148 }; 148 };
149 149
150 #endif//SkRecorder_DEFINED 150 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecordPattern.h ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698