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); |