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

Side by Side Diff: src/gpu/GrOvalRenderer.cpp

Issue 1308503002: Create separate entry points for the various flavors of drawRect (Closed) Base URL: https://skia.googlesource.com/skia.git@fptexturetestdebug2
Patch Set: rebase onto master 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrSWMaskHelper.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 2013 Google Inc. 2 * Copyright 2013 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 #include "GrOvalRenderer.h" 8 #include "GrOvalRenderer.h"
9 9
10 #include "GrBatchFlushState.h" 10 #include "GrBatchFlushState.h"
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 SkMatrix invert; 1451 SkMatrix invert;
1452 if (!viewMatrix.invert(&invert)) { 1452 if (!viewMatrix.invert(&invert)) {
1453 return false; 1453 return false;
1454 } 1454 }
1455 1455
1456 arfps.addCoverageProcessor(effect)->unref(); 1456 arfps.addCoverageProcessor(effect)->unref();
1457 SkRect bounds = outer->getBounds(); 1457 SkRect bounds = outer->getBounds();
1458 if (applyAA) { 1458 if (applyAA) {
1459 bounds.outset(SK_ScalarHalf, SK_ScalarHalf); 1459 bounds.outset(SK_ScalarHalf, SK_ScalarHalf);
1460 } 1460 }
1461 target->drawBWRect(pipelineBuilder, color, SkMatrix::I(), bounds, NULL, &inv ert); 1461 target->drawBWRect(pipelineBuilder, color, SkMatrix::I(), bounds, invert);
1462 return true; 1462 return true;
1463 } 1463 }
1464 1464
1465 //////////////////////////////////////////////////////////////////////////////// /////////////////// 1465 //////////////////////////////////////////////////////////////////////////////// ///////////////////
1466 1466
1467 class RRectCircleRendererBatch : public GrVertexBatch { 1467 class RRectCircleRendererBatch : public GrVertexBatch {
1468 public: 1468 public:
1469 struct Geometry { 1469 struct Geometry {
1470 GrColor fColor; 1470 GrColor fColor;
1471 SkMatrix fViewMatrix; 1471 SkMatrix fViewMatrix;
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 } 2037 }
2038 2038
2039 DRAW_BATCH_TEST_DEFINE(RRectBatch) { 2039 DRAW_BATCH_TEST_DEFINE(RRectBatch) {
2040 SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random); 2040 SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random);
2041 GrColor color = GrRandomColor(random); 2041 GrColor color = GrRandomColor(random);
2042 const SkRRect& rrect = GrTest::TestRRectSimple(random); 2042 const SkRRect& rrect = GrTest::TestRRectSimple(random);
2043 return create_rrect_batch(color, viewMatrix, rrect, GrTest::TestStrokeRec(ra ndom)); 2043 return create_rrect_batch(color, viewMatrix, rrect, GrTest::TestStrokeRec(ra ndom));
2044 } 2044 }
2045 2045
2046 #endif 2046 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698