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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 2753293003: gpu: Replace GpuMsg_CollectGraphicsInfo with mojom API. (Closed)
Patch Set: tot merge 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/common/gpu_host_messages.h ('k') | content/gpu/gpu_child_thread.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 mojo::ScopedSharedBufferHandle activity_flags) override; 104 mojo::ScopedSharedBufferHandle activity_flags) override;
105 void CreateDisplayCompositor( 105 void CreateDisplayCompositor(
106 cc::mojom::DisplayCompositorRequest request, 106 cc::mojom::DisplayCompositorRequest request,
107 cc::mojom::DisplayCompositorClientPtr client) override; 107 cc::mojom::DisplayCompositorClientPtr client) override;
108 108
109 // base::FieldTrialList::Observer: 109 // base::FieldTrialList::Observer:
110 void OnFieldTrialGroupFinalized(const std::string& trial_name, 110 void OnFieldTrialGroupFinalized(const std::string& trial_name,
111 const std::string& group_name) override; 111 const std::string& group_name) override;
112 112
113 // Message handlers. 113 // Message handlers.
114 void OnCollectGraphicsInfo();
115
116 void OnGpuSwitched(); 114 void OnGpuSwitched();
117 115
118 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 116 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
119 int client_id, 117 int client_id,
120 const gpu::SyncToken& sync_token); 118 const gpu::SyncToken& sync_token);
121 void BindServiceFactoryRequest( 119 void BindServiceFactoryRequest(
122 service_manager::mojom::ServiceFactoryRequest request); 120 service_manager::mojom::ServiceFactoryRequest request);
123 121
124 gpu::GpuChannelManager* gpu_channel_manager() { 122 gpu::GpuChannelManager* gpu_channel_manager() {
125 return gpu_service_->gpu_channel_manager(); 123 return gpu_service_->gpu_channel_manager();
(...skipping 19 matching lines...) Expand all
145 AssociatedInterfaceRegistryImpl associated_interfaces_; 143 AssociatedInterfaceRegistryImpl associated_interfaces_;
146 std::unique_ptr<ui::GpuService> gpu_service_; 144 std::unique_ptr<ui::GpuService> gpu_service_;
147 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; 145 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_;
148 146
149 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 147 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
150 }; 148 };
151 149
152 } // namespace content 150 } // namespace content
153 151
154 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 152 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698