| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Values tracked to determine if textured quads may be coalesced. | 32 // Values tracked to determine if textured quads may be coalesced. |
| 33 int program_id; | 33 int program_id; |
| 34 int resource_id; | 34 int resource_id; |
| 35 bool needs_blending; | 35 bool needs_blending; |
| 36 bool nearest_neighbor; | 36 bool nearest_neighbor; |
| 37 SkColor background_color; | 37 SkColor background_color; |
| 38 | 38 |
| 39 // Information about the program binding that is required to draw. | 39 // Information about the program binding that is required to draw. |
| 40 int uv_xform_location; | 40 int uv_xform_location; |
| 41 int tex_clamp_rect_location = -1; | |
| 42 int background_color_location; | 41 int background_color_location; |
| 43 int vertex_opacity_location; | 42 int vertex_opacity_location; |
| 44 int matrix_location; | 43 int matrix_location; |
| 45 int sampler_location; | 44 int sampler_location; |
| 46 | 45 |
| 47 // A cache for the coalesced quad data. | 46 // A cache for the coalesced quad data. |
| 48 std::vector<Float4> uv_xform_data; | 47 std::vector<Float4> uv_xform_data; |
| 49 std::vector<Float4> tex_clamp_rect_data; | |
| 50 std::vector<float> vertex_opacity_data; | 48 std::vector<float> vertex_opacity_data; |
| 51 std::vector<Float16> matrix_data; | 49 std::vector<Float16> matrix_data; |
| 52 | 50 |
| 53 private: | 51 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(TexturedQuadDrawCache); | 52 DISALLOW_COPY_AND_ASSIGN(TexturedQuadDrawCache); |
| 55 }; | 53 }; |
| 56 | 54 |
| 57 } // namespace cc | 55 } // namespace cc |
| 58 | 56 |
| 59 #endif // CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ | 57 #endif // CC_OUTPUT_GL_RENDERER_DRAW_CACHE_H_ |
| OLD | NEW |