aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTarget.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-08-21 10:53:34 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-21 10:53:34 -0700
commitd2b23e0ee6dcb366540b12d13552120289ee3da0 (patch)
tree334873f68cdcd4cc9c17bda94c2c59b18bf092d4 /src/gpu/GrDrawTarget.h
parent2244c27ea4db85df305fa09f664b7d75f637e7a9 (diff)
Standardize BW to NonAA
TBR=bsalomon@google.com, robertphillips@google.com BUG=skia: Review URL: https://codereview.chromium.org/1310533004
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r--src/gpu/GrDrawTarget.h49
1 files changed, 22 insertions, 27 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 1f7e297e51..48ac06d94e 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -120,34 +120,29 @@ public:
* that rectangle before it is input to GrCoordTransforms that read local
* coordinates
*/
- void drawBWRect(const GrPipelineBuilder& pipelineBuilder,
- GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect);
-
- void drawBWRect(const GrPipelineBuilder& pipelineBuilder,
- GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkMatrix& localMatrix);
-
- void drawBWRect(const GrPipelineBuilder& pipelineBuilder,
- GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkRect& localRect);
-
- /**
- * Helper for drawRect when the caller doesn't need separate local rects or matrices.
- */
- void drawSimpleRect(const GrPipelineBuilder& ds, GrColor color, const SkMatrix& viewM,
- const SkRect& rect) {
- this->drawBWRect(ds, color, viewM, rect);
- }
- void drawSimpleRect(const GrPipelineBuilder& ds, GrColor color, const SkMatrix& viewM,
- const SkIRect& irect) {
+ void drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
+ GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect);
+
+ void drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
+ GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ const SkMatrix& localMatrix);
+
+ void drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
+ GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ const SkRect& localRect);
+
+ void drawNonAARect(const GrPipelineBuilder& ds,
+ GrColor color,
+ const SkMatrix& viewM,
+ const SkIRect& irect) {
SkRect rect = SkRect::Make(irect);
- this->drawBWRect(ds, color, viewM, rect);
+ this->drawNonAARect(ds, color, viewM, rect);
}
void drawAARect(const GrPipelineBuilder& pipelineBuilder,