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

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

Issue 30593003: Apply matrix early in draw bitmap (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add flattenable registration for local image filter subclass to fix GM serialization failure Created 7 years, 2 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 | « gm/imagefiltersgraph.cpp ('k') | src/core/SkImageFilterUtils.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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 /** 185 /**
186 * Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's 186 * Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's
187 * matrix has already been set on GrContext 187 * matrix has already been set on GrContext
188 */ 188 */
189 bool shouldTileBitmap(const SkBitmap& bitmap, 189 bool shouldTileBitmap(const SkBitmap& bitmap,
190 const GrTextureParams& sampler, 190 const GrTextureParams& sampler,
191 const SkRect* srcRectPtr) const; 191 const SkRect* srcRectPtr) const;
192 void internalDrawBitmap(const SkBitmap&, 192 void internalDrawBitmap(const SkBitmap&,
193 const SkRect&, 193 const SkRect&,
194 const SkMatrix&,
195 const GrTextureParams& params, 194 const GrTextureParams& params,
196 const SkPaint& paint, 195 const SkPaint& paint,
197 SkCanvas::DrawBitmapRectFlags flags); 196 SkCanvas::DrawBitmapRectFlags flags);
198 void drawTiledBitmap(const SkBitmap& bitmap, 197 void drawTiledBitmap(const SkBitmap& bitmap,
199 const SkRect& srcRect, 198 const SkRect& srcRect,
200 const SkMatrix& m,
201 const GrTextureParams& params, 199 const GrTextureParams& params,
202 const SkPaint& paint, 200 const SkPaint& paint,
203 SkCanvas::DrawBitmapRectFlags flags); 201 SkCanvas::DrawBitmapRectFlags flags);
204 202
205 /** 203 /**
206 * Returns non-initialized instance. 204 * Returns non-initialized instance.
207 */ 205 */
208 GrTextContext* getTextContext(); 206 GrTextContext* getTextContext();
209 207
210 typedef SkBitmapDevice INHERITED; 208 typedef SkBitmapDevice INHERITED;
211 }; 209 };
212 210
213 #endif 211 #endif
OLDNEW
« no previous file with comments | « gm/imagefiltersgraph.cpp ('k') | src/core/SkImageFilterUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698