OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/common/gpu/context_provider_in_process.h" | 5 #include "webkit/common/gpu/context_provider_in_process.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/strings/string_split.h" | |
12 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
13 #include "cc/output/managed_memory_policy.h" | 12 #include "cc/output/managed_memory_policy.h" |
| 13 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" |
14 #include "gpu/command_buffer/client/gles2_implementation.h" | 14 #include "gpu/command_buffer/client/gles2_implementation.h" |
15 #include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h" | 15 #include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h" |
16 | 16 |
17 using gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl; | 17 using gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl; |
18 | 18 |
19 namespace webkit { | 19 namespace webkit { |
20 namespace gpu { | 20 namespace gpu { |
21 | 21 |
22 class ContextProviderInProcess::LostContextCallbackProxy | 22 class ContextProviderInProcess::LostContextCallbackProxy |
23 : public blink::WebGraphicsContext3D::WebGraphicsContextLostCallback { | 23 : public blink::WebGraphicsContext3D::WebGraphicsContextLostCallback { |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 lost_context_callback_ = lost_context_callback; | 209 lost_context_callback_ = lost_context_callback; |
210 } | 210 } |
211 | 211 |
212 void ContextProviderInProcess::SetMemoryPolicyChangedCallback( | 212 void ContextProviderInProcess::SetMemoryPolicyChangedCallback( |
213 const MemoryPolicyChangedCallback& memory_policy_changed_callback) { | 213 const MemoryPolicyChangedCallback& memory_policy_changed_callback) { |
214 // There's no memory manager for the in-process implementation. | 214 // There's no memory manager for the in-process implementation. |
215 } | 215 } |
216 | 216 |
217 } // namespace gpu | 217 } // namespace gpu |
218 } // namespace webkit | 218 } // namespace webkit |
OLD | NEW |