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

Unified Diff: src/gpu/GrAARectRenderer.h

Issue 1279303002: Expand functionality of GrRectBatchFactory with AARects (Closed) Base URL: https://skia.googlesource.com/skia.git@batchfactory3
Patch Set: tweaks Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAARectRenderer.h
diff --git a/src/gpu/GrAARectRenderer.h b/src/gpu/GrAARectRenderer.h
deleted file mode 100644
index 6115439ad7fce2a7b244ef67de540d23cb782d07..0000000000000000000000000000000000000000
--- a/src/gpu/GrAARectRenderer.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrAARectRenderer_DEFINED
-#define GrAARectRenderer_DEFINED
-
-#include "GrColor.h"
-#include "SkMatrix.h"
-#include "SkRect.h"
-#include "SkStrokeRec.h"
-
-class GrClip;
-class GrDrawTarget;
-class GrIndexBuffer;
-class GrPipelineBuilder;
-
-/*
- * This class wraps helper functions that draw AA rects (filled & stroked)
- */
-class GrAARectRenderer {
-public:
- // TODO: potentialy fuse the fill & stroke methods and differentiate
- // between them by passing in stroke (==NULL means fill).
-
- static void FillAARect(GrDrawTarget* target,
- const GrPipelineBuilder& pipelineBuilder,
- GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkRect& devRect) {
- GeometryFillAARect(target, pipelineBuilder, color, viewMatrix, rect, devRect);
- }
-
- static void StrokeAARect(GrDrawTarget*,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkRect& devRect,
- const SkStrokeRec& stroke);
-
- // First rect is outer; second rect is inner
- static void FillAANestedRects(GrDrawTarget*,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- const SkRect rects[2]);
-
-private:
- GrAARectRenderer();
-
- static void GeometryFillAARect(GrDrawTarget*,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkRect& devRect);
-
- static void GeometryStrokeAARect(GrDrawTarget*,
- const GrPipelineBuilder&,
- GrColor,
- const SkMatrix& viewMatrix,
- const SkRect& devOutside,
- const SkRect& devOutsideAssist,
- const SkRect& devInside,
- bool miterStroke);
-};
-
-#endif // GrAARectRenderer_DEFINED
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698