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

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

Issue 2023693002: Handle stroked single line special case in Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bugs Created 4 years, 6 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/core/SkPoint.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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const GrClip&, 245 const GrClip&,
246 const SkPaint&); 246 const SkPaint&);
247 247
248 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, 248 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer,
249 const SkRRect& inner, const SkPaint& paint); 249 const SkRRect& inner, const SkPaint& paint);
250 250
251 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent er, 251 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent er,
252 const SkRect& dst, const SkPaint&); 252 const SkRect& dst, const SkPaint&);
253 253
254 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 254 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
255 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&);
255 256
256 static sk_sp<GrDrawContext> CreateDrawContext(GrContext*, 257 static sk_sp<GrDrawContext> CreateDrawContext(GrContext*,
257 SkBudgeted, 258 SkBudgeted,
258 const SkImageInfo&, 259 const SkImageInfo&,
259 int sampleCount, 260 int sampleCount,
260 const SkSurfaceProps*); 261 const SkSurfaceProps*);
261 262
262 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, 263 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y,
263 const SkPaint&) override; 264 const SkPaint&) override;
264 265
265 friend class GrAtlasTextContext; 266 friend class GrAtlasTextContext;
266 friend class SkSurface_Gpu; // for access to surfaceProps 267 friend class SkSurface_Gpu; // for access to surfaceProps
267 typedef SkBaseDevice INHERITED; 268 typedef SkBaseDevice INHERITED;
268 }; 269 };
269 270
270 #endif 271 #endif
OLDNEW
« no previous file with comments | « src/core/SkPoint.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698