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

Side by Side Diff: components/mus/public/cpp/lib/command_buffer_client_impl.cc

Issue 2020293003: Use mus::MojoGpuMemoryBufferManager in mus::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 6 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
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/gles2_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/mus/public/cpp/lib/command_buffer_client_impl.h" 5 #include "components/mus/public/cpp/lib/command_buffer_client_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/process/process_handle.h" 14 #include "base/process/process_handle.h"
15 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
16 #include "components/mus/common/gpu_type_converters.h" 16 #include "components/mus/common/gpu_type_converters.h"
17 #include "components/mus/gles2/mojo_buffer_backing.h" 17 #include "components/mus/common/mojo_buffer_backing.h"
18 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" 18 #include "components/mus/common/mojo_gpu_memory_buffer.h"
19 #include "gpu/command_buffer/client/gpu_control_client.h" 19 #include "gpu/command_buffer/client/gpu_control_client.h"
20 #include "gpu/command_buffer/common/command_buffer_id.h" 20 #include "gpu/command_buffer/common/command_buffer_id.h"
21 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" 21 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h"
22 #include "gpu/command_buffer/common/sync_token.h" 22 #include "gpu/command_buffer/common/sync_token.h"
23 #include "mojo/public/cpp/system/platform_handle.h" 23 #include "mojo/public/cpp/system/platform_handle.h"
24 24
25 namespace mus { 25 namespace mus {
26 26
27 namespace { 27 namespace {
28 28
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 // It is also safe to wait on the same context. 375 // It is also safe to wait on the same context.
376 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && 376 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO &&
377 sync_token->command_buffer_id() == GetCommandBufferID()) 377 sync_token->command_buffer_id() == GetCommandBufferID())
378 return true; 378 return true;
379 379
380 return false; 380 return false;
381 } 381 }
382 382
383 } // namespace mus 383 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/gles2_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698