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

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 189913021: Implement support for a Context parameter in image filters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Revert all but the Context changes. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/effects/SkXfermodeImageFilter.h ('k') | src/core/SkBitmapDevice.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; 133 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE;
134 virtual void onDetachFromCanvas() SK_OVERRIDE; 134 virtual void onDetachFromCanvas() SK_OVERRIDE;
135 135
136 /** 136 /**
137 * Make's this device's rendertarget current in the underlying 3D API. 137 * Make's this device's rendertarget current in the underlying 3D API.
138 * Also implicitly flushes. 138 * Also implicitly flushes.
139 */ 139 */
140 virtual void makeRenderTargetCurrent(); 140 virtual void makeRenderTargetCurrent();
141 141
142 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; 142 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE;
143 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr ix&, 143 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
144 const SkImageFilter::Context&,
144 SkBitmap*, SkIPoint*) SK_OVERRIDE; 145 SkBitmap*, SkIPoint*) SK_OVERRIDE;
145 146
146 class SkAutoCachedTexture; // used internally 147 class SkAutoCachedTexture; // used internally
147 148
148 protected: 149 protected:
149 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE; 150 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE;
150 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE; 151 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE;
151 152
152 private: 153 private:
153 GrContext* fContext; 154 GrContext* fContext;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 const GrTextureParams& params, 212 const GrTextureParams& params,
212 const SkPaint& paint, 213 const SkPaint& paint,
213 SkCanvas::DrawBitmapRectFlags flags, 214 SkCanvas::DrawBitmapRectFlags flags,
214 int tileSize, 215 int tileSize,
215 bool bicubic); 216 bool bicubic);
216 217
217 typedef SkBitmapDevice INHERITED; 218 typedef SkBitmapDevice INHERITED;
218 }; 219 };
219 220
220 #endif 221 #endif
OLDNEW
« no previous file with comments | « include/effects/SkXfermodeImageFilter.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698