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

Side by Side Diff: services/ui/gpu/gpu_service.h

Issue 2717233003: gpu: Use mojom API for getting video memory usage. (Closed)
Patch Set: . Created 3 years, 9 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 | « gpu/ipc/common/typemaps.gni ('k') | services/ui/gpu/gpu_service.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 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 #ifndef SERVICES_UI_GPU_GPU_SERVICE_H_ 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_H_
6 #define SERVICES_UI_GPU_GPU_SERVICE_H_ 6 #define SERVICES_UI_GPU_GPU_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 gfx::GpuMemoryBufferId id, 115 gfx::GpuMemoryBufferId id,
116 const gfx::Size& size, 116 const gfx::Size& size,
117 gfx::BufferFormat format, 117 gfx::BufferFormat format,
118 gfx::BufferUsage usage, 118 gfx::BufferUsage usage,
119 int client_id, 119 int client_id,
120 gpu::SurfaceHandle surface_handle, 120 gpu::SurfaceHandle surface_handle,
121 const CreateGpuMemoryBufferCallback& callback) override; 121 const CreateGpuMemoryBufferCallback& callback) override;
122 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 122 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
123 int client_id, 123 int client_id,
124 const gpu::SyncToken& sync_token) override; 124 const gpu::SyncToken& sync_token) override;
125 void GetVideoMemoryUsageStats(
126 const GetVideoMemoryUsageStatsCallback& callback) override;
125 127
126 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 128 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
127 129
128 // An event that will be signalled when we shutdown. 130 // An event that will be signalled when we shutdown.
129 base::WaitableEvent shutdown_event_; 131 base::WaitableEvent shutdown_event_;
130 132
131 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; 133 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_;
132 134
133 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_; 135 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_;
134 136
(...skipping 15 matching lines...) Expand all
150 gpu::SyncPointManager* sync_point_manager_ = nullptr; 152 gpu::SyncPointManager* sync_point_manager_ = nullptr;
151 153
152 mojo::BindingSet<mojom::GpuService> bindings_; 154 mojo::BindingSet<mojom::GpuService> bindings_;
153 155
154 DISALLOW_COPY_AND_ASSIGN(GpuService); 156 DISALLOW_COPY_AND_ASSIGN(GpuService);
155 }; 157 };
156 158
157 } // namespace ui 159 } // namespace ui
158 160
159 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 161 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/typemaps.gni ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698