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

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

Issue 220233011: Implement drawDRRect for GPU (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 6 years, 8 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') | include/gpu/SkGpuDevice.h » ('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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 const SkMatrix* dstMatrix = NULL, 450 const SkMatrix* dstMatrix = NULL,
451 const SkMatrix* localMatrix = NULL); 451 const SkMatrix* localMatrix = NULL);
452 452
453 /** 453 /**
454 * Draw a roundrect using a paint. 454 * Draw a roundrect using a paint.
455 * 455 *
456 * @param paint describes how to color pixels. 456 * @param paint describes how to color pixels.
457 * @param rrect the roundrect to draw 457 * @param rrect the roundrect to draw
458 * @param stroke the stroke information (width, join, cap) 458 * @param stroke the stroke information (width, join, cap)
459 */ 459 */
460 void drawRRect(const GrPaint& paint, 460 void drawRRect(const GrPaint& paint, const SkRRect& rrect, const SkStrokeRec & stroke);
461 const SkRRect& rrect, 461
462 const SkStrokeRec& stroke); 462 /**
463 * Shortcut for drawing an SkPath consisting of nested rrects using a paint .
464 * Does not support stroking. The result is undefined if outer does not con tain
465 * inner.
466 *
467 * @param paint describes how to color pixels.
468 * @param outer the outer roundrect
469 * @param inner the inner roundrect
470 */
471 void drawDRRect(const GrPaint& paint, const SkRRect& outer, const SkRRect& i nner);
472
463 473
464 /** 474 /**
465 * Draws a path. 475 * Draws a path.
466 * 476 *
467 * @param paint describes how to color pixels. 477 * @param paint describes how to color pixels.
468 * @param path the path to draw 478 * @param path the path to draw
469 * @param stroke the stroke information (width, join, cap) 479 * @param stroke the stroke information (width, join, cap)
470 */ 480 */
471 void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& s troke); 481 void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& s troke);
472 482
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 } 1088 }
1079 1089
1080 GrTexture* texture() { return fTexture; } 1090 GrTexture* texture() { return fTexture; }
1081 1091
1082 private: 1092 private:
1083 GrContext* fContext; 1093 GrContext* fContext;
1084 GrTexture* fTexture; 1094 GrTexture* fTexture;
1085 }; 1095 };
1086 1096
1087 #endif 1097 #endif
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | include/gpu/SkGpuDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698