| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrDashingEffect.h" | 8 #include "GrDashingEffect.h" |
| 9 | 9 |
| 10 #include "GrBatchFlushState.h" | 10 #include "GrBatchFlushState.h" |
| 11 #include "GrBatchTest.h" | 11 #include "GrBatchTest.h" |
| 12 #include "GrCaps.h" | 12 #include "GrCaps.h" |
| 13 #include "GrGeometryProcessor.h" | 13 #include "GrGeometryProcessor.h" |
| 14 #include "GrContext.h" | 14 #include "GrContext.h" |
| 15 #include "GrCoordTransform.h" | 15 #include "GrCoordTransform.h" |
| 16 #include "GrDefaultGeoProcFactory.h" | 16 #include "GrDefaultGeoProcFactory.h" |
| 17 #include "GrDrawTarget.h" | 17 #include "GrDrawTarget.h" |
| 18 #include "GrInvariantOutput.h" | 18 #include "GrInvariantOutput.h" |
| 19 #include "GrProcessor.h" | 19 #include "GrProcessor.h" |
| 20 #include "GrStrokeInfo.h" | 20 #include "GrStrokeInfo.h" |
| 21 #include "GrVertexBuffer.h" | 21 #include "GrVertexBuffer.h" |
| 22 #include "SkGr.h" | 22 #include "SkGr.h" |
| 23 #include "batches/GrVertexBatch.h" | 23 #include "batches/GrVertexBatch.h" |
| 24 #include "gl/GrGLGeometryProcessor.h" | 24 #include "gl/GrGLGeometryProcessor.h" |
| 25 #include "gl/GrGLFragmentProcessor.h" | 25 #include "glsl/GrGLSLFragmentProcessor.h" |
| 26 #include "glsl/GrGLSLFragmentShaderBuilder.h" | 26 #include "glsl/GrGLSLFragmentShaderBuilder.h" |
| 27 #include "glsl/GrGLSLProgramBuilder.h" | 27 #include "glsl/GrGLSLProgramBuilder.h" |
| 28 #include "glsl/GrGLSLProgramDataManager.h" | 28 #include "glsl/GrGLSLProgramDataManager.h" |
| 29 #include "glsl/GrGLSLVertexShaderBuilder.h" | 29 #include "glsl/GrGLSLVertexShaderBuilder.h" |
| 30 | 30 |
| 31 /////////////////////////////////////////////////////////////////////////////// | 31 /////////////////////////////////////////////////////////////////////////////// |
| 32 | 32 |
| 33 // Returns whether or not the gpu can fast path the dash line effect. | 33 // Returns whether or not the gpu can fast path the dash line effect. |
| 34 bool GrDashingEffect::CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo&
strokeInfo, | 34 bool GrDashingEffect::CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo&
strokeInfo, |
| 35 const SkMatrix& viewMatrix) { | 35 const SkMatrix& viewMatrix) { |
| (...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 info.fIntervals = intervals; | 1281 info.fIntervals = intervals; |
| 1282 info.fCount = 2; | 1282 info.fCount = 2; |
| 1283 info.fPhase = phase; | 1283 info.fPhase = phase; |
| 1284 SkDEBUGCODE(bool success = ) strokeInfo.setDashInfo(info); | 1284 SkDEBUGCODE(bool success = ) strokeInfo.setDashInfo(info); |
| 1285 SkASSERT(success); | 1285 SkASSERT(success); |
| 1286 | 1286 |
| 1287 return create_batch(color, viewMatrix, pts, useAA, strokeInfo, msaaRT); | 1287 return create_batch(color, viewMatrix, pts, useAA, strokeInfo, msaaRT); |
| 1288 } | 1288 } |
| 1289 | 1289 |
| 1290 #endif | 1290 #endif |
| OLD | NEW |