| OLD | NEW |
| 1 // Copyright (c) 2009 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 #include <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "app/gfx/gl/gl_context.h" | |
| 8 #include "gpu/command_buffer/service/gpu_processor.h" | 7 #include "gpu/command_buffer/service/gpu_processor.h" |
| 8 #include "ui/gfx/gl/gl_context.h" |
| 9 | 9 |
| 10 using ::base::SharedMemory; | 10 using ::base::SharedMemory; |
| 11 | 11 |
| 12 namespace gpu { | 12 namespace gpu { |
| 13 | 13 |
| 14 bool GPUProcessor::Initialize( | 14 bool GPUProcessor::Initialize( |
| 15 gfx::PluginWindowHandle window, | 15 gfx::PluginWindowHandle window, |
| 16 const gfx::Size& size, | 16 const gfx::Size& size, |
| 17 const gles2::DisallowedExtensions& disallowed_extensions, | 17 const gles2::DisallowedExtensions& disallowed_extensions, |
| 18 const char* allowed_extensions, | 18 const char* allowed_extensions, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 DestroyCommon(); | 57 DestroyCommon(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void GPUProcessor::WillSwapBuffers() { | 60 void GPUProcessor::WillSwapBuffers() { |
| 61 if (wrapped_swap_buffers_callback_.get()) { | 61 if (wrapped_swap_buffers_callback_.get()) { |
| 62 wrapped_swap_buffers_callback_->Run(); | 62 wrapped_swap_buffers_callback_->Run(); |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace gpu | 66 } // namespace gpu |
| OLD | NEW |