OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |