| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "GrAARectRenderer.h" | 8 #include "GrAARectRenderer.h" |
| 9 #include "GrBatch.h" | |
| 10 #include "GrBatchTarget.h" | 9 #include "GrBatchTarget.h" |
| 11 #include "GrBatchTest.h" | 10 #include "GrBatchTest.h" |
| 12 #include "GrContext.h" | 11 #include "GrContext.h" |
| 13 #include "GrDefaultGeoProcFactory.h" | 12 #include "GrDefaultGeoProcFactory.h" |
| 14 #include "GrDrawTarget.h" | 13 #include "GrDrawTarget.h" |
| 15 #include "GrGeometryProcessor.h" | 14 #include "GrGeometryProcessor.h" |
| 16 #include "GrInvariantOutput.h" | 15 #include "GrInvariantOutput.h" |
| 17 #include "GrResourceKey.h" | 16 #include "GrResourceKey.h" |
| 18 #include "GrResourceProvider.h" | 17 #include "GrResourceProvider.h" |
| 19 #include "GrTestUtils.h" | 18 #include "GrTestUtils.h" |
| 20 #include "GrVertexBuffer.h" | 19 #include "GrVertexBuffer.h" |
| 21 #include "SkColorPriv.h" | 20 #include "SkColorPriv.h" |
| 21 #include "batches/GrBatch.h" |
| 22 #include "gl/GrGLProcessor.h" | 22 #include "gl/GrGLProcessor.h" |
| 23 #include "gl/GrGLGeometryProcessor.h" | 23 #include "gl/GrGLGeometryProcessor.h" |
| 24 #include "gl/builders/GrGLProgramBuilder.h" | 24 #include "gl/builders/GrGLProgramBuilder.h" |
| 25 | 25 |
| 26 /////////////////////////////////////////////////////////////////////////////// | 26 /////////////////////////////////////////////////////////////////////////////// |
| 27 | 27 |
| 28 static void set_inset_fan(SkPoint* pts, size_t stride, | 28 static void set_inset_fan(SkPoint* pts, size_t stride, |
| 29 const SkRect& r, SkScalar dx, SkScalar dy) { | 29 const SkRect& r, SkScalar dx, SkScalar dy) { |
| 30 pts->setRectFan(r.fLeft + dx, r.fTop + dy, | 30 pts->setRectFan(r.fLeft + dx, r.fTop + dy, |
| 31 r.fRight - dx, r.fBottom - dy, stride); | 31 r.fRight - dx, r.fBottom - dy, stride); |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 geo.fColor = GrRandomColor(random); | 848 geo.fColor = GrRandomColor(random); |
| 849 geo.fDevOutside = outside; | 849 geo.fDevOutside = outside; |
| 850 geo.fDevOutsideAssist = outsideAssist; | 850 geo.fDevOutsideAssist = outsideAssist; |
| 851 geo.fDevInside = inside; | 851 geo.fDevInside = inside; |
| 852 geo.fMiterStroke = miterStroke; | 852 geo.fMiterStroke = miterStroke; |
| 853 | 853 |
| 854 return AAStrokeRectBatch::Create(geo, GrTest::TestMatrix(random)); | 854 return AAStrokeRectBatch::Create(geo, GrTest::TestMatrix(random)); |
| 855 } | 855 } |
| 856 | 856 |
| 857 #endif | 857 #endif |
| OLD | NEW |