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

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

Issue 131323004: Handle drawBitmapRect src_rect->dst_rect mapping as a local matrix rather than view matrix when the… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: f Created 6 years, 11 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 | « expectations/gm/ignored-tests.txt ('k') | src/gpu/SkGpuDevice.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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 170 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
171 // SkDraw's matrix and draw in device coords. 171 // SkDraw's matrix and draw in device coords.
172 void prepareDraw(const SkDraw&, bool forceIdentity); 172 void prepareDraw(const SkDraw&, bool forceIdentity);
173 173
174 /** 174 /**
175 * Implementation for both drawBitmap and drawBitmapRect. 175 * Implementation for both drawBitmap and drawBitmapRect.
176 */ 176 */
177 void drawBitmapCommon(const SkDraw&, 177 void drawBitmapCommon(const SkDraw&,
178 const SkBitmap& bitmap, 178 const SkBitmap& bitmap,
179 const SkRect* srcRectPtr, 179 const SkRect* srcRectPtr,
180 const SkMatrix&, 180 const SkSize* dstSizePtr, // ignored iff srcRectP tr == NULL
181 const SkPaint&, 181 const SkPaint&,
182 SkCanvas::DrawBitmapRectFlags flags); 182 SkCanvas::DrawBitmapRectFlags flags);
183 183
184 /** 184 /**
185 * Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's 185 * Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's
186 * matrix, clip, and the device's render target has already been set on GrCo ntext. 186 * matrix, clip, and the device's render target has already been set on GrCo ntext.
187 */ 187 */
188 188
189 // The tileSize and clippedSrcRect will be valid only if true is returned. 189 // The tileSize and clippedSrcRect will be valid only if true is returned.
190 bool shouldTileBitmap(const SkBitmap& bitmap, 190 bool shouldTileBitmap(const SkBitmap& bitmap,
(...skipping 19 matching lines...) Expand all
210 210
211 /** 211 /**
212 * Returns non-initialized instance. 212 * Returns non-initialized instance.
213 */ 213 */
214 GrTextContext* getTextContext(); 214 GrTextContext* getTextContext();
215 215
216 typedef SkBitmapDevice INHERITED; 216 typedef SkBitmapDevice INHERITED;
217 }; 217 };
218 218
219 #endif 219 #endif
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698