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

Unified Diff: services/ui/gpu/gpu_service.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 side-by-side diff with in-line comments
Download patch
Index: services/ui/gpu/gpu_service.h
diff --git a/services/ui/gpu/gpu_service.h b/services/ui/gpu/gpu_service.h
index 3ad7b5e60d4d6c2e194fb091faf7547e5b902d04..aac89381d1d3f86f879ec998a9ea8916124ea36e 100644
--- a/services/ui/gpu/gpu_service.h
+++ b/services/ui/gpu/gpu_service.h
@@ -75,6 +75,10 @@ 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;
@@ -90,6 +94,8 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
const gpu::GPUInfo& gpu_info() const { return gpu_info_; }
+ void UpdateGpuInfoPlatform();
+
// gpu::GpuChannelManagerDelegate:
void DidCreateOffscreenContext(const GURL& active_url) override;
void DidDestroyChannel(int client_id) override;
@@ -127,6 +133,8 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
const gpu::SyncToken& sync_token) override;
void GetVideoMemoryUsageStats(
const GetVideoMemoryUsageStatsCallback& callback) override;
+ void RequestCompleteGpuInfo(
+ const RequestCompleteGpuInfoCallback& callback) override;
void LoadedShader(const std::string& data) override;
void DestroyingVideoSurface(
int32_t surface_id,
@@ -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);

Powered by Google App Engine
This is Rietveld 408576698