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

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

Issue 1817383002: switch surface to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/SkRecorder.h ('k') | src/core/SkSpecialImage.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 #include "SkBigPicture.h" 8 #include "SkBigPicture.h"
9 #include "SkCanvasPriv.h" 9 #include "SkCanvasPriv.h"
10 #include "SkPatchUtils.h" 10 #include "SkPatchUtils.h"
11 #include "SkPicture.h" 11 #include "SkPicture.h"
12 #include "SkPictureUtils.h" 12 #include "SkPictureUtils.h"
13 #include "SkRecorder.h" 13 #include "SkRecorder.h"
14 #include "SkSurface.h"
14 15
15 //#define WRAP_BITMAP_AS_IMAGE 16 //#define WRAP_BITMAP_AS_IMAGE
16 17
17 SkDrawableList::~SkDrawableList() { 18 SkDrawableList::~SkDrawableList() {
18 fArray.unrefAll(); 19 fArray.unrefAll();
19 } 20 }
20 21
21 SkBigPicture::SnapshotArray* SkDrawableList::newDrawableSnapshot() { 22 SkBigPicture::SnapshotArray* SkDrawableList::newDrawableSnapshot() {
22 const int count = fArray.count(); 23 const int count = fArray.count();
23 if (0 == count) { 24 if (0 == count) {
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 INHERITED(onClipPath, path, op, edgeStyle); 375 INHERITED(onClipPath, path, op, edgeStyle);
375 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); 376 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle);
376 APPEND(ClipPath, this->devBounds(), path, opAA); 377 APPEND(ClipPath, this->devBounds(), path, opAA);
377 } 378 }
378 379
379 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { 380 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) {
380 INHERITED(onClipRegion, deviceRgn, op); 381 INHERITED(onClipRegion, deviceRgn, op);
381 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); 382 APPEND(ClipRegion, this->devBounds(), deviceRgn, op);
382 } 383 }
383 384
385 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro ps&) {
386 return nullptr;
387 }
OLDNEW
« no previous file with comments | « src/core/SkRecorder.h ('k') | src/core/SkSpecialImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698