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_GL_RENDERER_DRAW_CACHE_H_ | 5 #ifndef CC_GL_RENDERER_DRAW_CACHE_H_ |
6 #define CC_GL_RENDERER_DRAW_CACHE_H_ | 6 #define CC_GL_RENDERER_DRAW_CACHE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 int program_id; | 25 int program_id; |
26 int resource_id; | 26 int resource_id; |
27 float alpha; | 27 float alpha; |
28 bool use_premultiplied_alpha; | 28 bool use_premultiplied_alpha; |
29 bool needs_blending; | 29 bool needs_blending; |
30 | 30 |
31 // Information about the program binding that is required to draw. | 31 // Information about the program binding that is required to draw. |
32 int alpha_location; | 32 int alpha_location; |
33 int uv_xform_location; | 33 int uv_xform_location; |
34 int matrix_location; | 34 int matrix_location; |
| 35 int sampler_location; |
35 | 36 |
36 // A cache for the coalesced quad data. | 37 // A cache for the coalesced quad data. |
37 std::vector<Float4> uv_xform_data; | 38 std::vector<Float4> uv_xform_data; |
38 std::vector<Float16> matrix_data; | 39 std::vector<Float16> matrix_data; |
39 }; | 40 }; |
40 | 41 |
41 #endif // CC_GL_RENDERER_DRAW_CACHE_H_ | 42 #endif // CC_GL_RENDERER_DRAW_CACHE_H_ |
42 | 43 |
OLD | NEW |