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

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

Issue 2763493002: gpu: Use mojom API for recording log messages to the host. (Closed)
Patch Set: add comment 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return gpu_feature_info_; 75 return gpu_feature_info_;
76 } 76 }
77 77
78 void set_in_host_process(bool in_host_process) { 78 void set_in_host_process(bool in_host_process) {
79 in_host_process_ = in_host_process; 79 in_host_process_ = in_host_process;
80 } 80 }
81 81
82 private: 82 private:
83 friend class GpuMain; 83 friend class GpuMain;
84 84
85 void RecordLogMessage(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
86 int severity,
87 size_t message_start,
88 const std::string& message);
89
85 gpu::SyncPointManager* sync_point_manager() { return sync_point_manager_; } 90 gpu::SyncPointManager* sync_point_manager() { return sync_point_manager_; }
86 91
87 gpu::gles2::MailboxManager* mailbox_manager() { 92 gpu::gles2::MailboxManager* mailbox_manager() {
88 return gpu_channel_manager_->mailbox_manager(); 93 return gpu_channel_manager_->mailbox_manager();
89 } 94 }
90 95
91 gl::GLShareGroup* share_group() { 96 gl::GLShareGroup* share_group() {
92 return gpu_channel_manager_->share_group(); 97 return gpu_channel_manager_->share_group();
93 } 98 }
94 99
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 bool in_host_process_ = false; 181 bool in_host_process_ = false;
177 182
178 mojo::BindingSet<mojom::GpuService> bindings_; 183 mojo::BindingSet<mojom::GpuService> bindings_;
179 184
180 DISALLOW_COPY_AND_ASSIGN(GpuService); 185 DISALLOW_COPY_AND_ASSIGN(GpuService);
181 }; 186 };
182 187
183 } // namespace ui 188 } // namespace ui
184 189
185 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 190 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698