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

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

Issue 2723363002: gpu: Replace GpuMsg_Finalize ipc with equivalent mojom api (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 | « content/public/browser/gpu_utils.cc ('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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const GetVideoMemoryUsageStatsCallback& callback) override; 127 const GetVideoMemoryUsageStatsCallback& callback) override;
128 void LoadedShader(const std::string& data) override; 128 void LoadedShader(const std::string& data) override;
129 void DestroyingVideoSurface( 129 void DestroyingVideoSurface(
130 int32_t surface_id, 130 int32_t surface_id,
131 const DestroyingVideoSurfaceCallback& callback) override; 131 const DestroyingVideoSurfaceCallback& callback) override;
132 void WakeUpGpu() override; 132 void WakeUpGpu() override;
133 void DestroyAllChannels() override; 133 void DestroyAllChannels() override;
134 void Crash() override; 134 void Crash() override;
135 void Hang() override; 135 void Hang() override;
136 void ThrowJavaException() override; 136 void ThrowJavaException() override;
137 void Stop(const StopCallback& callback) override;
137 138
138 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 139 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
139 140
140 // An event that will be signalled when we shutdown. 141 // An event that will be signalled when we shutdown.
141 base::WaitableEvent shutdown_event_; 142 base::WaitableEvent shutdown_event_;
142 143
143 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; 144 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_;
144 145
145 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_; 146 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_;
146 147
(...skipping 15 matching lines...) Expand all
162 gpu::SyncPointManager* sync_point_manager_ = nullptr; 163 gpu::SyncPointManager* sync_point_manager_ = nullptr;
163 164
164 mojo::BindingSet<mojom::GpuService> bindings_; 165 mojo::BindingSet<mojom::GpuService> bindings_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(GpuService); 167 DISALLOW_COPY_AND_ASSIGN(GpuService);
167 }; 168 };
168 169
169 } // namespace ui 170 } // namespace ui
170 171
171 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 172 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW
« no previous file with comments | « content/public/browser/gpu_utils.cc ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698