| 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 "gpu/command_buffer/client/gles2_implementation.h" | 17 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 16 #include "gpu/skia_bindings/grcontext_for_gles2_interface.h" | 18 #include "gpu/skia_bindings/grcontext_for_gles2_interface.h" |
| 17 #include "third_party/skia/include/gpu/GrContext.h" | 19 #include "third_party/skia/include/gpu/GrContext.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 184 |
| 183 void ContextProviderCommandBuffer::SetLostContextCallback( | 185 void ContextProviderCommandBuffer::SetLostContextCallback( |
| 184 const LostContextCallback& lost_context_callback) { | 186 const LostContextCallback& lost_context_callback) { |
| 185 DCHECK(context_thread_checker_.CalledOnValidThread()); | 187 DCHECK(context_thread_checker_.CalledOnValidThread()); |
| 186 DCHECK(lost_context_callback_.is_null() || | 188 DCHECK(lost_context_callback_.is_null() || |
| 187 lost_context_callback.is_null()); | 189 lost_context_callback.is_null()); |
| 188 lost_context_callback_ = lost_context_callback; | 190 lost_context_callback_ = lost_context_callback; |
| 189 } | 191 } |
| 190 | 192 |
| 191 } // namespace content | 193 } // namespace content |
| OLD | NEW |