| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 unsigned long indx; | 839 unsigned long indx; |
| 840 int size; | 840 int size; |
| 841 int type; | 841 int type; |
| 842 bool normalized; | 842 bool normalized; |
| 843 unsigned long stride; | 843 unsigned long stride; |
| 844 unsigned long offset; | 844 unsigned long offset; |
| 845 }; | 845 }; |
| 846 | 846 |
| 847 // ANGLE related. | 847 // ANGLE related. |
| 848 struct ShaderSourceEntry { | 848 struct ShaderSourceEntry { |
| 849 explicit ShaderSourceEntry(unsigned long shader_type) | 849 explicit ShaderSourceEntry(unsigned long shader_type); |
| 850 : type(shader_type), | 850 ~ShaderSourceEntry(); |
| 851 is_valid(false) { | |
| 852 } | |
| 853 | 851 |
| 854 unsigned long type; | 852 unsigned long type; |
| 855 scoped_array<char> source; | 853 scoped_array<char> source; |
| 856 scoped_array<char> log; | 854 scoped_array<char> log; |
| 857 scoped_array<char> translated_source; | 855 scoped_array<char> translated_source; |
| 858 bool is_valid; | 856 bool is_valid; |
| 859 }; | 857 }; |
| 860 | 858 |
| 861 typedef base::hash_map<WebKit::WebGLId, ShaderSourceEntry*> ShaderSourceMap; | 859 typedef base::hash_map<WebKit::WebGLId, ShaderSourceEntry*> ShaderSourceMap; |
| 862 | 860 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 ShHandle vertex_compiler_; | 925 ShHandle vertex_compiler_; |
| 928 }; | 926 }; |
| 929 | 927 |
| 930 #endif // USE_WGC3D_TYPES | 928 #endif // USE_WGC3D_TYPES |
| 931 | 929 |
| 932 } // namespace gpu | 930 } // namespace gpu |
| 933 } // namespace webkit | 931 } // namespace webkit |
| 934 | 932 |
| 935 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 933 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| 936 | 934 |
| OLD | NEW |