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

Unified Diff: components/exo/buffer.cc

Issue 2748903002: cc: Add gfx::BufferFormat to cc::ResourceProvider::Resource. (Closed)
Patch Set: Always initialize buffer_format. 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 | « cc/resources/transferable_resource.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/buffer.cc
diff --git a/components/exo/buffer.cc b/components/exo/buffer.cc
index d9f29ec71e96600a02dd1c0ecf57d7ad71cd101c..9b5ebadc57f055e9b8c7136ca6c7c3da95b2510d 100644
--- a/components/exo/buffer.cc
+++ b/components/exo/buffer.cc
@@ -457,6 +457,7 @@ bool Buffer::ProduceTransferableResource(
resource->mailbox_holder = gpu::MailboxHolder(contents_texture->mailbox(),
sync_token, texture_target_);
resource->is_overlay_candidate = is_overlay_candidate_;
+ resource->buffer_format = gpu_memory_buffer_->GetFormat();
// The contents texture will be released when no longer used by the
// compositor.
« no previous file with comments | « cc/resources/transferable_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698