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 "content/common/gpu/client/context_provider_command_buffer.h" | 5 #include "content/common/gpu/client/context_provider_command_buffer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 |
| 9 #include <memory> |
8 #include <set> | 10 #include <set> |
9 #include <utility> | 11 #include <utility> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/callback_helpers.h" | 14 #include "base/callback_helpers.h" |
13 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
14 #include "cc/output/managed_memory_policy.h" | 16 #include "cc/output/managed_memory_policy.h" |
15 #include "content/common/gpu/client/grcontext_for_gles2_interface.h" | 17 #include "content/common/gpu/client/grcontext_for_gles2_interface.h" |
16 #include "gpu/command_buffer/client/gles2_implementation.h" | 18 #include "gpu/command_buffer/client/gles2_implementation.h" |
17 #include "third_party/skia/include/gpu/GrContext.h" | 19 #include "third_party/skia/include/gpu/GrContext.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 194 |
193 void ContextProviderCommandBuffer::SetLostContextCallback( | 195 void ContextProviderCommandBuffer::SetLostContextCallback( |
194 const LostContextCallback& lost_context_callback) { | 196 const LostContextCallback& lost_context_callback) { |
195 DCHECK(context_thread_checker_.CalledOnValidThread()); | 197 DCHECK(context_thread_checker_.CalledOnValidThread()); |
196 DCHECK(lost_context_callback_.is_null() || | 198 DCHECK(lost_context_callback_.is_null() || |
197 lost_context_callback.is_null()); | 199 lost_context_callback.is_null()); |
198 lost_context_callback_ = lost_context_callback; | 200 lost_context_callback_ = lost_context_callback; |
199 } | 201 } |
200 | 202 |
201 } // namespace content | 203 } // namespace content |
OLD | NEW |