OLD | NEW |
1 // Copyright (c) 2011 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 "gpu/command_buffer/service/gpu_scheduler.h" | 5 #include "gpu/command_buffer/service/gpu_scheduler.h" |
6 #include "ui/gfx/gl/gl_context.h" | 6 #include "ui/gfx/gl/gl_context.h" |
7 #include "ui/gfx/gl/gl_share_group.h" | 7 #include "ui/gfx/gl/gl_share_group.h" |
8 #include "ui/gfx/gl/gl_surface.h" | 8 #include "ui/gfx/gl/gl_surface.h" |
9 | 9 |
10 using ::base::SharedMemory; | 10 using ::base::SharedMemory; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 size, | 51 size, |
52 disallowed_extensions, | 52 disallowed_extensions, |
53 allowed_extensions, | 53 allowed_extensions, |
54 attribs); | 54 attribs); |
55 } | 55 } |
56 | 56 |
57 void GpuScheduler::Destroy() { | 57 void GpuScheduler::Destroy() { |
58 DestroyCommon(); | 58 DestroyCommon(); |
59 } | 59 } |
60 | 60 |
61 void GpuScheduler::WillSwapBuffers() { | |
62 if (wrapped_swap_buffers_callback_.get()) { | |
63 wrapped_swap_buffers_callback_->Run(); | |
64 } | |
65 } | |
66 | |
67 } // namespace gpu | 61 } // namespace gpu |
OLD | NEW |