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

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

Issue 2801723002: GpuService: introduce GetGpuMemoryBufferAttribs as a mojo interface
Patch Set: cache GpuMemoryBufferAttribs, rename GetSupportedGpuMemoryBufferAttribsForUsage Created 3 years, 8 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 | « no previous file | 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 990c488b595ae075ad7abaefa745666b2a5dc732..e0b1fc985aa47d01af49a586a0a61e7882d2fe8e 100644
--- a/services/ui/gpu/gpu_service.h
+++ b/services/ui/gpu/gpu_service.h
@@ -139,6 +139,8 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
int client_id,
const gpu::SyncToken& sync_token) override;
+ void GetGpuMemoryBufferAttribs(
+ const GetGpuMemoryBufferAttribsCallback& callback) override;
void GetVideoMemoryUsageStats(
const GetVideoMemoryUsageStatsCallback& callback) override;
void RequestCompleteGpuInfo(
@@ -170,6 +172,9 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
// Information about general chrome feature support for the GPU.
gpu::GpuFeatureInfo gpu_feature_info_;
+ // GpuMemoryBufferAttribs that are supported for all gfx::BufferUsage flags.
+ gfx::GpuMemoryBufferAttribVector gpu_memory_buffer_attribs_;
+
scoped_refptr<mojom::ThreadSafeGpuHostPtr> gpu_host_;
std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_;
std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_;
« no previous file with comments | « no previous file | services/ui/gpu/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698