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

Side by Side Diff: src/core/SkPicture.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 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/SkPathRef.cpp ('k') | src/core/SkPictureData.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 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 #include "SkAtomics.h" 8 #include "SkAtomics.h"
9 #include "SkMessageBus.h" 9 #include "SkMessageBus.h"
10 #include "SkPicture.h" 10 #include "SkPicture.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 SkAutoTDelete<SkPictureData> data(SkPictureData::CreateFromBuffer(buffer, in fo)); 162 SkAutoTDelete<SkPictureData> data(SkPictureData::CreateFromBuffer(buffer, in fo));
163 return Forwardport(info, data); 163 return Forwardport(info, data);
164 } 164 }
165 165
166 SkPictureData* SkPicture::backport() const { 166 SkPictureData* SkPicture::backport() const {
167 SkPictInfo info = this->createHeader(); 167 SkPictInfo info = this->createHeader();
168 SkPictureRecord rec(SkISize::Make(info.fCullRect.width(), info.fCullRect.hei ght()), 0/*flags*/); 168 SkPictureRecord rec(SkISize::Make(info.fCullRect.width(), info.fCullRect.hei ght()), 0/*flags*/);
169 rec.beginRecording(); 169 rec.beginRecording();
170 this->playback(&rec); 170 this->playback(&rec);
171 rec.endRecording(); 171 rec.endRecording();
172 return SkNEW_ARGS(SkPictureData, (rec, info, false/*deep copy ops?*/)); 172 return new SkPictureData(rec, info, false /*deep copy ops?*/);
173 } 173 }
174 174
175 void SkPicture::serialize(SkWStream* stream, SkPixelSerializer* pixelSerializer) const { 175 void SkPicture::serialize(SkWStream* stream, SkPixelSerializer* pixelSerializer) const {
176 this->serialize(stream, pixelSerializer, nullptr); 176 this->serialize(stream, pixelSerializer, nullptr);
177 } 177 }
178 178
179 void SkPicture::serialize(SkWStream* stream, 179 void SkPicture::serialize(SkWStream* stream,
180 SkPixelSerializer* pixelSerializer, 180 SkPixelSerializer* pixelSerializer,
181 SkRefCntSet* typefaceSet) const { 181 SkRefCntSet* typefaceSet) const {
182 SkPictInfo info = this->createHeader(); 182 SkPictInfo info = this->createHeader();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 // Global setting to disable security precautions for serialization. 218 // Global setting to disable security precautions for serialization.
219 void SkPicture::SetPictureIOSecurityPrecautionsEnabled_Dangerous(bool set) { 219 void SkPicture::SetPictureIOSecurityPrecautionsEnabled_Dangerous(bool set) {
220 g_AllPictureIOSecurityPrecautionsEnabled = set; 220 g_AllPictureIOSecurityPrecautionsEnabled = set;
221 } 221 }
222 222
223 bool SkPicture::PictureIOSecurityPrecautionsEnabled() { 223 bool SkPicture::PictureIOSecurityPrecautionsEnabled() {
224 return g_AllPictureIOSecurityPrecautionsEnabled; 224 return g_AllPictureIOSecurityPrecautionsEnabled;
225 } 225 }
OLDNEW
« no previous file with comments | « src/core/SkPathRef.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698