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

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

Issue 2267273006: GPU implementation of drawRegion() (Closed) Base URL: https://skia.googlesource.com/skia.git@drawregion
Patch Set: SkToBool Created 4 years, 3 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 | « src/gpu/GrDrawContext.cpp ('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 * 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 GrDrawContext* accessDrawContext() override; 67 GrDrawContext* accessDrawContext() override;
68 68
69 void drawPaint(const SkDraw&, const SkPaint& paint) override; 69 void drawPaint(const SkDraw&, const SkPaint& paint) override;
70 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count, const SkPoint[], 70 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count, const SkPoint[],
71 const SkPaint& paint) override; 71 const SkPaint& paint) override;
72 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override ; 72 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override ;
73 void drawRRect(const SkDraw&, const SkRRect& r, const SkPaint& paint) overri de; 73 void drawRRect(const SkDraw&, const SkRRect& r, const SkPaint& paint) overri de;
74 void drawDRRect(const SkDraw& draw, const SkRRect& outer, const SkRRect& inn er, 74 void drawDRRect(const SkDraw& draw, const SkRRect& outer, const SkRRect& inn er,
75 const SkPaint& paint) override; 75 const SkPaint& paint) override;
76 void drawRegion(const SkDraw&, const SkRegion& r, const SkPaint& paint) over ride;
76 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr ide; 77 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr ide;
77 void drawArc(const SkDraw&, const SkRect& oval, SkScalar startAngle, SkScala r sweepAngle, 78 void drawArc(const SkDraw&, const SkRect& oval, SkScalar startAngle, SkScala r sweepAngle,
78 bool useCenter, const SkPaint& paint) override; 79 bool useCenter, const SkPaint& paint) override;
79 void drawPath(const SkDraw&, const SkPath& path, const SkPaint& paint, 80 void drawPath(const SkDraw&, const SkPath& path, const SkPaint& paint,
80 const SkMatrix* prePathMatrix, bool pathIsMutable) override; 81 const SkMatrix* prePathMatrix, bool pathIsMutable) override;
81 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, const SkMatrix&, 82 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, const SkMatrix&,
82 const SkPaint&) override; 83 const SkPaint&) override;
83 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect* srcOrNull, const SkRect& dst, 84 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect* srcOrNull, const SkRect& dst,
84 const SkPaint& paint, SkCanvas::SrcRectConstraint) overr ide; 85 const SkPaint& paint, SkCanvas::SrcRectConstraint) overr ide;
85 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, 86 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 int sampleCount, 245 int sampleCount,
245 GrSurfaceOrigin, 246 GrSurfaceOrigin,
246 const SkSurfaceProps*); 247 const SkSurfaceProps*);
247 248
248 friend class GrAtlasTextContext; 249 friend class GrAtlasTextContext;
249 friend class SkSurface_Gpu; // for access to surfaceProps 250 friend class SkSurface_Gpu; // for access to surfaceProps
250 typedef SkBaseDevice INHERITED; 251 typedef SkBaseDevice INHERITED;
251 }; 252 };
252 253
253 #endif 254 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698