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

Side by Side Diff: services/ui/gpu/gpu_service_impl.cc

Issue 2248973005: mojo: Struct traits for gpu buffer types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/gpu/gpu_service_impl.h" 5 #include "services/ui/gpu/gpu_service_impl.h"
6 6
7 #include "services/shell/public/cpp/connection.h" 7 #include "services/shell/public/cpp/connection.h"
8 #include "services/ui/common/gpu_type_converters.h" 8 #include "services/ui/common/gpu_type_converters.h"
9 #include "services/ui/gpu/gpu_service_mus.h" 9 #include "services/ui/gpu/gpu_service_mus.h"
10 10
(...skipping 29 matching lines...) Expand all
40 const bool allow_view_command_buffers = false; 40 const bool allow_view_command_buffers = false;
41 const bool allow_real_time_streams = false; 41 const bool allow_real_time_streams = false;
42 service->EstablishGpuChannel( 42 service->EstablishGpuChannel(
43 client_tracing_id, preempts, allow_view_command_buffers, 43 client_tracing_id, preempts, allow_view_command_buffers,
44 allow_real_time_streams, base::Bind(&EstablishGpuChannelDone, callback)); 44 allow_real_time_streams, base::Bind(&EstablishGpuChannelDone, callback));
45 } 45 }
46 46
47 void GpuServiceImpl::CreateGpuMemoryBuffer( 47 void GpuServiceImpl::CreateGpuMemoryBuffer(
48 mojom::GpuMemoryBufferIdPtr id, 48 mojom::GpuMemoryBufferIdPtr id,
49 const gfx::Size& size, 49 const gfx::Size& size,
50 mojom::BufferFormat format, 50 gfx::BufferFormat format,
51 mojom::BufferUsage usage, 51 gfx::BufferUsage usage,
52 uint64_t surface_id, 52 uint64_t surface_id,
53 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) { 53 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) {
54 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
55 } 55 }
56 56
57 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, 57 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id,
58 const gpu::SyncToken& sync_token) { 58 const gpu::SyncToken& sync_token) {
59 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
60 } 60 }
61 61
62 } // namespace ui 62 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/gpu/gpu_service_impl.h ('k') | services/ui/public/interfaces/gpu_memory_buffer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698