Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/common/gpu/client/gpu_in_process_context_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698