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

Unified Diff: src/gpu/GrDashLinePathRenderer.cpp

Issue 1306143005: Move Pathrenderers to batches folder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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 | « src/gpu/GrDashLinePathRenderer.h ('k') | src/gpu/GrStencilAndCoverPathRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDashLinePathRenderer.cpp
diff --git a/src/gpu/GrDashLinePathRenderer.cpp b/src/gpu/GrDashLinePathRenderer.cpp
deleted file mode 100644
index e26f5d762723281b3a27a5d615a1414c0d4bd3ec..0000000000000000000000000000000000000000
--- a/src/gpu/GrDashLinePathRenderer.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "GrDashLinePathRenderer.h"
-
-#include "GrGpu.h"
-#include "effects/GrDashingEffect.h"
-
-bool GrDashLinePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const {
- SkPoint pts[2];
- if (args.fStroke->isDashed() && args.fPath->isLine(pts)) {
- return GrDashingEffect::CanDrawDashLine(pts, *args.fStroke, *args.fViewMatrix);
- }
- return false;
-}
-
-bool GrDashLinePathRenderer::onDrawPath(const DrawPathArgs& args) {
- SkPoint pts[2];
- SkAssertResult(args.fPath->isLine(pts));
- return GrDashingEffect::DrawDashLine(args.fTarget, *args.fPipelineBuilder, args.fColor,
- *args.fViewMatrix, pts, args.fAntiAlias, *args.fStroke);
-}
« no previous file with comments | « src/gpu/GrDashLinePathRenderer.h ('k') | src/gpu/GrStencilAndCoverPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698