| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 5 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 | 38 |
| 39 WGC3Denum type; | 39 WGC3Denum type; |
| 40 scoped_array<char> source; | 40 scoped_array<char> source; |
| 41 scoped_array<char> log; | 41 scoped_array<char> log; |
| 42 scoped_array<char> translated_source; | 42 scoped_array<char> translated_source; |
| 43 bool is_valid; | 43 bool is_valid; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 WebGraphicsContext3DInProcessImpl::WebGraphicsContext3DInProcessImpl( | 46 WebGraphicsContext3DInProcessImpl::WebGraphicsContext3DInProcessImpl( |
| 47 gfx::PluginWindowHandle window, | 47 gfx::AcceleratedWidget window, |
| 48 gfx::GLShareGroup* share_group) | 48 gfx::GLShareGroup* share_group) |
| 49 : initialized_(false), | 49 : initialized_(false), |
| 50 render_directly_to_web_view_(false), | 50 render_directly_to_web_view_(false), |
| 51 is_gles2_(false), | 51 is_gles2_(false), |
| 52 have_ext_framebuffer_object_(false), | 52 have_ext_framebuffer_object_(false), |
| 53 have_ext_framebuffer_multisample_(false), | 53 have_ext_framebuffer_multisample_(false), |
| 54 have_angle_framebuffer_multisample_(false), | 54 have_angle_framebuffer_multisample_(false), |
| 55 texture_(0), | 55 texture_(0), |
| 56 fbo_(0), | 56 fbo_(0), |
| 57 depth_stencil_buffer_(0), | 57 depth_stencil_buffer_(0), |
| (...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 if (length > 1) { | 1702 if (length > 1) { |
| 1703 entry->translated_source.reset(new char[length]); | 1703 entry->translated_source.reset(new char[length]); |
| 1704 ShGetObjectCode(compiler, entry->translated_source.get()); | 1704 ShGetObjectCode(compiler, entry->translated_source.get()); |
| 1705 } | 1705 } |
| 1706 entry->is_valid = true; | 1706 entry->is_valid = true; |
| 1707 return true; | 1707 return true; |
| 1708 } | 1708 } |
| 1709 | 1709 |
| 1710 } // namespace gpu | 1710 } // namespace gpu |
| 1711 } // namespace webkit | 1711 } // namespace webkit |
| OLD | NEW |