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

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

Issue 2161533003: Add makeSpecial calls to SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Nervous compilers 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 | « include/core/SkDevice.h ('k') | src/gpu/SkGpuDevice.h » ('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 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 "SkColorFilter.h" 8 #include "SkColorFilter.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkDraw.h" 10 #include "SkDraw.h"
11 #include "SkDrawFilter.h" 11 #include "SkDrawFilter.h"
12 #include "SkImage_Base.h" 12 #include "SkImage_Base.h"
13 #include "SkImageFilter.h" 13 #include "SkImageFilter.h"
14 #include "SkImageFilterCache.h" 14 #include "SkImageFilterCache.h"
15 #include "SkMetaData.h" 15 #include "SkMetaData.h"
16 #include "SkNinePatchIter.h" 16 #include "SkNinePatchIter.h"
17 #include "SkPatchUtils.h" 17 #include "SkPatchUtils.h"
18 #include "SkPathMeasure.h" 18 #include "SkPathMeasure.h"
19 #include "SkRasterClip.h" 19 #include "SkRasterClip.h"
20 #include "SkRSXform.h" 20 #include "SkRSXform.h"
21 #include "SkShader.h" 21 #include "SkShader.h"
22 #include "SkSpecialImage.h" 22 #include "SkSpecialImage.h"
23 #include "SkTextBlobRunIterator.h" 23 #include "SkTextBlobRunIterator.h"
24 #include "SkTextToPathIter.h" 24 #include "SkTextToPathIter.h"
25 25
26 void SkBaseDevice::drawSpecial(const SkDraw&, SkSpecialImage*, int x, int y, con st SkPaint&) {
27 }
28
29 sk_sp<SkSpecialImage> SkBaseDevice::makeSpecial(const SkBitmap&) {
30 return nullptr;
31 }
32
33 sk_sp<SkSpecialImage> SkBaseDevice::makeSpecial(SkImage*) {
34 return nullptr;
35 }
36
37 sk_sp<SkSpecialImage> SkBaseDevice::snapSpecial() {
38 return nullptr;
39 }
40
26 SkBaseDevice::SkBaseDevice(const SkSurfaceProps& surfaceProps) 41 SkBaseDevice::SkBaseDevice(const SkSurfaceProps& surfaceProps)
27 : fSurfaceProps(surfaceProps) 42 : fSurfaceProps(surfaceProps)
28 #ifdef SK_DEBUG 43 #ifdef SK_DEBUG
29 , fAttachedToCanvas(false) 44 , fAttachedToCanvas(false)
30 #endif 45 #endif
31 { 46 {
32 fOrigin.setZero(); 47 fOrigin.setZero();
33 fMetaData = nullptr; 48 fMetaData = nullptr;
34 } 49 }
35 50
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 553
539 // Also log filter quality independent scale factor. 554 // Also log filter quality independent scale factor.
540 SK_HISTOGRAM_ENUMERATION("DrawScaleFactor.AnyFilterQuality", scaleFactor, 555 SK_HISTOGRAM_ENUMERATION("DrawScaleFactor.AnyFilterQuality", scaleFactor,
541 kLast_ScaleFactor + 1); 556 kLast_ScaleFactor + 1);
542 557
543 // Also log an overall histogram of filter quality. 558 // Also log an overall histogram of filter quality.
544 SK_HISTOGRAM_ENUMERATION("FilterQuality", filterQuality, kLast_SkFilterQuali ty + 1); 559 SK_HISTOGRAM_ENUMERATION("FilterQuality", filterQuality, kLast_SkFilterQuali ty + 1);
545 #endif 560 #endif
546 } 561 }
547 562
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/gpu/SkGpuDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698