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

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

Issue 2146223003: Remove GrWrapTextureInBitmap call in SkGpuDevice::drawSpriteWithFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 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 SkGpuDevice_DEFINED 8 #ifndef SkGpuDevice_DEFINED
9 #define SkGpuDevice_DEFINED 9 #define SkGpuDevice_DEFINED
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 const SkPoint& offset, const SkPaint&) override; 111 const SkPoint& offset, const SkPaint&) override;
112 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y, 112 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y,
113 const SkPaint& paint, SkDrawFilter* drawFilter) ov erride; 113 const SkPaint& paint, SkDrawFilter* drawFilter) ov erride;
114 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 114 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
115 const SkPoint verts[], const SkPoint texs[], 115 const SkPoint verts[], const SkPoint texs[],
116 const SkColor colors[], SkXfermode* xmode, 116 const SkColor colors[], SkXfermode* xmode,
117 const uint16_t indices[], int indexCount, 117 const uint16_t indices[], int indexCount,
118 const SkPaint&) override; 118 const SkPaint&) override;
119 void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[], const SkRect[], 119 void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[], const SkRect[],
120 const SkColor[], int count, SkXfermode::Mode, const SkPai nt&) override; 120 const SkColor[], int count, SkXfermode::Mode, const SkPai nt&) override;
121 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 121 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, const SkPaint&) override;
122 const SkPaint&) override; 122
123 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override; 123 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override;
124 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst, 124 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst,
125 const SkPaint&, SkCanvas::SrcRectConstraint) override; 125 const SkPaint&, SkCanvas::SrcRectConstraint) override;
126 126
127 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect& center, 127 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect& center,
128 const SkRect& dst, const SkPaint& paint) override; 128 const SkRect& dst, const SkPaint& paint) override;
129 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec t& center, 129 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec t& center,
130 const SkRect& dst, const SkPaint& paint) override; 130 const SkRect& dst, const SkPaint& paint) override;
131 131
132 void flush() override; 132 void flush() override;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 void internalDrawBitmap(const SkBitmap&, 212 void internalDrawBitmap(const SkBitmap&,
213 const SkMatrix& viewMatrix, 213 const SkMatrix& viewMatrix,
214 const SkRect&, 214 const SkRect&,
215 const GrTextureParams& params, 215 const GrTextureParams& params,
216 const SkPaint& paint, 216 const SkPaint& paint,
217 SkCanvas::SrcRectConstraint, 217 SkCanvas::SrcRectConstraint,
218 bool bicubic, 218 bool bicubic,
219 bool needsTextureDomain); 219 bool needsTextureDomain);
220 220
221 sk_sp<GrTexture> filterTexture(const SkDraw& draw, sk_sp<GrTexture> texture,
222 uint32_t generationID, const SkIRect& srcSubs et,
223 int left, int top,
224 SkIRect* subset, SkIPoint* offset, const SkIm ageFilter* filter);
225
226 void internalDrawSprite(const SkDraw& draw, sk_sp<GrTexture> texture,
227 uint32_t generationID, const SkIRect& srcRect,
228 int left, int top, const SkPaint& paint);
229
221 void drawTiledBitmap(const SkBitmap& bitmap, 230 void drawTiledBitmap(const SkBitmap& bitmap,
222 const SkMatrix& viewMatrix, 231 const SkMatrix& viewMatrix,
223 const SkRect& srcRect, 232 const SkRect& srcRect,
224 const SkIRect& clippedSrcRect, 233 const SkIRect& clippedSrcRect,
225 const GrTextureParams& params, 234 const GrTextureParams& params,
226 const SkPaint& paint, 235 const SkPaint& paint,
227 SkCanvas::SrcRectConstraint, 236 SkCanvas::SrcRectConstraint,
228 int tileSize, 237 int tileSize,
229 bool bicubic); 238 bool bicubic);
230 239
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 271
263 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, 272 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y,
264 const SkPaint&) override; 273 const SkPaint&) override;
265 274
266 friend class GrAtlasTextContext; 275 friend class GrAtlasTextContext;
267 friend class SkSurface_Gpu; // for access to surfaceProps 276 friend class SkSurface_Gpu; // for access to surfaceProps
268 typedef SkBaseDevice INHERITED; 277 typedef SkBaseDevice INHERITED;
269 }; 278 };
270 279
271 #endif 280 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698