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