| 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 #ifndef GrGLSLVertexShader_DEFINED |   8 #ifndef GrGLSLVertexShader_DEFINED | 
|   9 #define GrGLSLVertexShader_DEFINED |   9 #define GrGLSLVertexShader_DEFINED | 
|  10  |  10  | 
|  11 #include "GrGLSLShaderBuilder.h" |  11 #include "GrGLSLShaderBuilder.h" | 
|  12 #include "GrGeometryProcessor.h" |  12 #include "GrGeometryProcessor.h" | 
|  13  |  13  | 
|  14 class GrGLSLVarying; |  14 class GrGLSLVarying; | 
|  15  |  15  | 
 |  16 // Enough precision to represent 1 / 2048 accurately in printf | 
 |  17 #define GR_SIGNIFICANT_POW2_DECIMAL_DIG 11 | 
 |  18  | 
|  16 class GrGLSLVertexBuilder : public GrGLSLShaderBuilder { |  19 class GrGLSLVertexBuilder : public GrGLSLShaderBuilder { | 
|  17 public: |  20 public: | 
|  18     GrGLSLVertexBuilder(GrGLSLProgramBuilder* program); |  21     GrGLSLVertexBuilder(GrGLSLProgramBuilder* program); | 
|  19  |  22  | 
|  20     void transformToNormalizedDeviceSpace(const GrShaderVar& posVar); |  23     void transformToNormalizedDeviceSpace(const GrShaderVar& posVar); | 
|  21 private: |  24 private: | 
|  22     void onFinalize() override; |  25     void onFinalize() override; | 
|  23      |  26      | 
|  24     const char* fRtAdjustName; |  27     const char* fRtAdjustName; | 
|  25  |  28  | 
|  26     friend class GrGLProgramBuilder; |  29     friend class GrGLProgramBuilder; | 
|  27  |  30  | 
|  28     typedef GrGLSLShaderBuilder INHERITED; |  31     typedef GrGLSLShaderBuilder INHERITED; | 
|  29 }; |  32 }; | 
|  30  |  33  | 
|  31 #endif |  34 #endif | 
| OLD | NEW |