OLD | NEW |
---|---|
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
7 | 7 |
8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_deque.h" | 10 #include "cc/base/scoped_ptr_deque.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 // fill edge array for fragment shader. local_quad is set to | 126 // fill edge array for fragment shader. local_quad is set to |
127 // inflated quad if antialiasing is required, otherwise it is left | 127 // inflated quad if antialiasing is required, otherwise it is left |
128 // unchanged. edge array is filled with inflated quad's edge data | 128 // unchanged. edge array is filled with inflated quad's edge data |
129 // if antialiasing is required, otherwise it is left unchanged. | 129 // if antialiasing is required, otherwise it is left unchanged. |
130 // Returns true if quad requires antialiasing and false otherwise. | 130 // Returns true if quad requires antialiasing and false otherwise. |
131 static bool SetupQuadForAntialiasing(const gfx::Transform& device_transform, | 131 static bool SetupQuadForAntialiasing(const gfx::Transform& device_transform, |
132 const DrawQuad* quad, | 132 const DrawQuad* quad, |
133 gfx::QuadF* local_quad, | 133 gfx::QuadF* local_quad, |
134 float edge[24]); | 134 float edge[24]); |
135 | 135 |
136 static GLint GetActiveTextureUnit(gpu::gles2::GLES2Interface* gl); | |
danakj
2014/07/10 17:01:43
why public and a member of the class? just make it
sohanjg
2014/07/11 16:43:32
Done.
| |
137 | |
136 private: | 138 private: |
137 friend class GLRendererShaderPixelTest; | 139 friend class GLRendererShaderPixelTest; |
138 friend class GLRendererShaderTest; | 140 friend class GLRendererShaderTest; |
139 | 141 |
140 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); | 142 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); |
141 | 143 |
142 void DrawCheckerboardQuad(const DrawingFrame* frame, | 144 void DrawCheckerboardQuad(const DrawingFrame* frame, |
143 const CheckerboardDrawQuad* quad); | 145 const CheckerboardDrawQuad* quad); |
144 void DrawDebugBorderQuad(const DrawingFrame* frame, | 146 void DrawDebugBorderQuad(const DrawingFrame* frame, |
145 const DebugBorderDrawQuad* quad); | 147 const DebugBorderDrawQuad* quad); |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
433 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 435 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
434 #define GLC(context, x) \ | 436 #define GLC(context, x) \ |
435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 437 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
436 #else | 438 #else |
437 #define GLC(context, x) (x) | 439 #define GLC(context, x) (x) |
438 #endif | 440 #endif |
439 | 441 |
440 } // namespace cc | 442 } // namespace cc |
441 | 443 |
442 #endif // CC_OUTPUT_GL_RENDERER_H_ | 444 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |