| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_DRAW_CACHE_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ |
| 6 #define CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ | 6 #define CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 TexturedQuadDrawCache(); | 28 TexturedQuadDrawCache(); |
| 29 ~TexturedQuadDrawCache(); | 29 ~TexturedQuadDrawCache(); |
| 30 | 30 |
| 31 // Values tracked to determine if textured quads may be coalesced. | 31 // Values tracked to determine if textured quads may be coalesced. |
| 32 int program_id; | 32 int program_id; |
| 33 int resource_id; | 33 int resource_id; |
| 34 bool needs_blending; | 34 bool needs_blending; |
| 35 | 35 |
| 36 // Information about the program binding that is required to draw. | 36 // Information about the program binding that is required to draw. |
| 37 int uv_xform_location; | 37 int uv_xform_location; |
| 38 int background_color_location; |
| 38 int vertex_opacity_location; | 39 int vertex_opacity_location; |
| 39 int matrix_location; | 40 int matrix_location; |
| 40 int sampler_location; | 41 int sampler_location; |
| 41 | 42 |
| 42 // A cache for the coalesced quad data. | 43 // A cache for the coalesced quad data. |
| 43 std::vector<Float4> uv_xform_data; | 44 std::vector<Float4> uv_xform_data; |
| 45 std::vector<Float4> background_color_data; |
| 44 std::vector<float> vertex_opacity_data; | 46 std::vector<float> vertex_opacity_data; |
| 45 std::vector<Float16> matrix_data; | 47 std::vector<Float16> matrix_data; |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(TexturedQuadDrawCache); | 50 DISALLOW_COPY_AND_ASSIGN(TexturedQuadDrawCache); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 } // namespace cc | 53 } // namespace cc |
| 52 | 54 |
| 53 #endif // CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ | 55 #endif // CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ |
| OLD | NEW |