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

Unified Diff: services/ui/gpu/gpu_service_internal.h

Issue 2329043002: services/ui: Avoid thread hopping in the gpu process. (Closed)
Patch Set: fix debug Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | services/ui/gpu/gpu_service_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/gpu_service_internal.h
diff --git a/services/ui/gpu/gpu_service_internal.h b/services/ui/gpu/gpu_service_internal.h
index 82f93d05e439ccb4fbd3ba366343938a2275dcb5..5b151d72ee6fa380c33a0326181a4c6a087f9652 100644
--- a/services/ui/gpu/gpu_service_internal.h
+++ b/services/ui/gpu/gpu_service_internal.h
@@ -48,14 +48,6 @@ class GpuServiceInternal : public gpu::GpuChannelManagerDelegate,
void Add(mojom::GpuServiceInternalRequest request);
- gpu::GpuChannelManager* gpu_channel_manager() const {
- return gpu_channel_manager_.get();
- }
-
- gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory() const {
- return gpu_memory_buffer_factory_;
- }
-
// TODO(sad): These should be mojom API.
gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
gfx::GpuMemoryBufferId id,
@@ -75,12 +67,8 @@ class GpuServiceInternal : public gpu::GpuChannelManagerDelegate,
gpu::GpuWatchdogThread* watchdog,
gpu::GpuMemoryBufferFactory* memory_buffer_factory);
- void EstablishGpuChannelInternal(int32_t client_id,
- uint64_t client_tracing_id,
- bool preempts,
- bool allow_view_command_buffers,
- bool allow_real_time_streams,
- const EstablishGpuChannelCallback& callback);
+ void BindOnGpuThread(mojom::GpuServiceInternalRequest request);
+
gfx::GpuMemoryBufferHandle CreateGpuMemoryBufferFromeHandle(
gfx::GpuMemoryBufferHandle buffer_handle,
gfx::GpuMemoryBufferId id,
@@ -113,15 +101,6 @@ class GpuServiceInternal : public gpu::GpuChannelManagerDelegate,
bool is_gpu_host,
const EstablishGpuChannelCallback& callback) override;
- void InitializeOnGpuThread(base::WaitableEvent* event);
- void EstablishGpuChannelOnGpuThread(
- int client_id,
- uint64_t client_tracing_id,
- bool preempts,
- bool allow_view_command_buffers,
- bool allow_real_time_streams,
- mojo::ScopedMessagePipeHandle* channel_handle);
-
// The main thread task runner.
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
« no previous file with comments | « no previous file | services/ui/gpu/gpu_service_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698