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

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

Issue 2763493002: gpu: Use mojom API for recording log messages to the host. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/gpu_service.h
diff --git a/services/ui/gpu/gpu_service.h b/services/ui/gpu/gpu_service.h
index 9faf51350aeb93401de147f8bf8d0db7c376d145..65253164e6b6ac3b2ebf2cad070d9e7d1315ca57 100644
--- a/services/ui/gpu/gpu_service.h
+++ b/services/ui/gpu/gpu_service.h
@@ -75,9 +75,17 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
return gpu_feature_info_;
}
+ void set_in_host_process(bool in_host_process) {
+ in_host_process_ = in_host_process;
+ }
+
private:
friend class GpuMain;
+ void RecordLogMessage(int severity,
+ size_t message_start,
+ const std::string& message);
+
gpu::SyncPointManager* sync_point_manager() { return sync_point_manager_; }
gpu::gles2::MailboxManager* mailbox_manager() {
@@ -164,6 +172,9 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_;
gpu::SyncPointManager* sync_point_manager_ = nullptr;
+ // Whether this is running in the same process as the gpu host.
+ bool in_host_process_ = false;
+
mojo::BindingSet<mojom::GpuService> bindings_;
DISALLOW_COPY_AND_ASSIGN(GpuService);
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698