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

Side by Side Diff: src/core/SkSpecialImage.h

Issue 1772933002: Switch SkImageSource image filter over to new onFilterImage interface (Closed) Base URL: https://skia.googlesource.com/skia.git@if-follow-on
Patch Set: update to ToT again 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 | « include/effects/SkImageSource.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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef SkSpecialImage_DEFINED 8 #ifndef SkSpecialImage_DEFINED
9 #define SkSpecialImage_DEFINED 9 #define SkSpecialImage_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 uint32_t uniqueID() const { return fUniqueID; } 46 uint32_t uniqueID() const { return fUniqueID; }
47 virtual bool isOpaque() const { return false; } 47 virtual bool isOpaque() const { return false; }
48 virtual size_t getSize() const = 0; 48 virtual size_t getSize() const = 0;
49 49
50 /** 50 /**
51 * Draw this SpecialImage into the canvas. 51 * Draw this SpecialImage into the canvas.
52 */ 52 */
53 void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const; 53 void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const;
54 54
55 static SkSpecialImage* NewFromImage(const SkIRect& subset, const SkImage*); 55 static SkSpecialImage* NewFromImage(SkImageFilter::Proxy*,
56 const SkIRect& subset,
57 const SkImage*);
56 static SkSpecialImage* NewFromRaster(SkImageFilter::Proxy*, 58 static SkSpecialImage* NewFromRaster(SkImageFilter::Proxy*,
57 const SkIRect& subset, 59 const SkIRect& subset,
58 const SkBitmap&); 60 const SkBitmap&);
59 static SkSpecialImage* NewFromGpu(SkImageFilter::Proxy*, 61 static SkSpecialImage* NewFromGpu(SkImageFilter::Proxy*,
60 const SkIRect& subset, 62 const SkIRect& subset,
61 uint32_t uniqueID, 63 uint32_t uniqueID,
62 GrTexture*, 64 GrTexture*,
63 SkAlphaType at = kPremul_SkAlphaType); 65 SkAlphaType at = kPremul_SkAlphaType);
64 66
65 /** 67 /**
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const uint32_t fUniqueID; 117 const uint32_t fUniqueID;
116 118
117 // TODO: remove this ASAP (see skbug.com/4965) 119 // TODO: remove this ASAP (see skbug.com/4965)
118 SkImageFilter::Proxy* fProxy; 120 SkImageFilter::Proxy* fProxy;
119 121
120 typedef SkRefCnt INHERITED; 122 typedef SkRefCnt INHERITED;
121 }; 123 };
122 124
123 #endif 125 #endif
124 126
OLDNEW
« no previous file with comments | « include/effects/SkImageSource.h ('k') | src/core/SkSpecialImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698