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

Side by Side Diff: src/pdf/SkPDFDevice.cpp

Issue 2155063002: use special-image for imagefilters and save/restore layer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address comments Created 4 years, 5 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/SkSpecialImage.cpp ('k') | no next file » | 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 2011 Google Inc. 2 * Copyright 2011 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 "SkPDFDevice.h" 8 #include "SkPDFDevice.h"
9 #include "SkAnnotationKeys.h" 9 #include "SkAnnotationKeys.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkBitmap& bitmap) { 2255 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkBitmap& bitmap) {
2256 return SkSpecialImage::MakeFromRaster(bitmap.bounds(), bitmap); 2256 return SkSpecialImage::MakeFromRaster(bitmap.bounds(), bitmap);
2257 } 2257 }
2258 2258
2259 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkImage* image) { 2259 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkImage* image) {
2260 return SkSpecialImage::MakeFromImage(SkIRect::MakeWH(image->width(), image-> height()), 2260 return SkSpecialImage::MakeFromImage(SkIRect::MakeWH(image->width(), image-> height()),
2261 image->makeNonTextureImage()); 2261 image->makeNonTextureImage());
2262 } 2262 }
2263 2263
2264 sk_sp<SkSpecialImage> SkPDFDevice::snapSpecial() { 2264 sk_sp<SkSpecialImage> SkPDFDevice::snapSpecial() {
2265 SkASSERT(false);
2266 return nullptr; 2265 return nullptr;
2267 } 2266 }
OLDNEW
« no previous file with comments | « src/core/SkSpecialImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698