| 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_command_buffer_impl.h" | 5 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
| 6 | 6 |
| 7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
| 8 #ifndef GL_GLEXT_PROTOTYPES | 8 #ifndef GL_GLEXT_PROTOTYPES |
| 9 #define GL_GLEXT_PROTOTYPES 1 | 9 #define GL_GLEXT_PROTOTYPES 1 |
| 10 #endif | 10 #endif |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 LOG(ERROR) << "Could not make context current."; | 644 LOG(ERROR) << "Could not make context current."; |
| 645 Destroy(); | 645 Destroy(); |
| 646 return false; | 646 return false; |
| 647 } | 647 } |
| 648 | 648 |
| 649 ::gpu::gles2::DisallowedFeatures disallowed_features; | 649 ::gpu::gles2::DisallowedFeatures disallowed_features; |
| 650 disallowed_features.swap_buffer_complete_callback = true; | 650 disallowed_features.swap_buffer_complete_callback = true; |
| 651 disallowed_features.gpu_memory_manager = true; | 651 disallowed_features.gpu_memory_manager = true; |
| 652 if (!decoder_->Initialize(surface_, | 652 if (!decoder_->Initialize(surface_, |
| 653 context_, | 653 context_, |
| 654 true, | 654 is_offscreen, |
| 655 size, | 655 size, |
| 656 disallowed_features, | 656 disallowed_features, |
| 657 allowed_extensions, | 657 allowed_extensions, |
| 658 attribs)) { | 658 attribs)) { |
| 659 LOG(ERROR) << "Could not initialize decoder."; | 659 LOG(ERROR) << "Could not initialize decoder."; |
| 660 Destroy(); | 660 Destroy(); |
| 661 return false; | 661 return false; |
| 662 } | 662 } |
| 663 } | 663 } |
| 664 | 664 |
| (...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1984 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, | 1984 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, |
| 1985 WGC3Denum) | 1985 WGC3Denum) |
| 1986 | 1986 |
| 1987 void WebGraphicsContext3DInProcessCommandBufferImpl::SetGpuMemoryBufferCreator( | 1987 void WebGraphicsContext3DInProcessCommandBufferImpl::SetGpuMemoryBufferCreator( |
| 1988 GpuMemoryBufferCreator* creator) { | 1988 GpuMemoryBufferCreator* creator) { |
| 1989 g_gpu_memory_buffer_creator = creator; | 1989 g_gpu_memory_buffer_creator = creator; |
| 1990 } | 1990 } |
| 1991 | 1991 |
| 1992 } // namespace gpu | 1992 } // namespace gpu |
| 1993 } // namespace webkit | 1993 } // namespace webkit |
| OLD | NEW |