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

Side by Side Diff: cc/ipc/transferable_resource.mojom

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 unified diff | Download patch
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/ipc/transferable_resource_struct_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 module cc.mojom; 5 module cc.mojom;
6 6
7 import "gpu/ipc/common/mailbox_holder.mojom"; 7 import "gpu/ipc/common/mailbox_holder.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 import "ui/gfx/mojo/buffer_types.mojom";
9 10
10 enum ResourceFormat { 11 enum ResourceFormat {
11 RGBA_8888, 12 RGBA_8888,
12 RGBA_4444, 13 RGBA_4444,
13 BGRA_8888, 14 BGRA_8888,
14 ALPHA_8, 15 ALPHA_8,
15 LUMINANCE_8, 16 LUMINANCE_8,
16 RGB_565, 17 RGB_565,
17 ETC1, 18 ETC1,
18 }; 19 };
19 20
20 // See cc/resources/transferable_resource.h. 21 // See cc/resources/transferable_resource.h.
21 struct TransferableResource { 22 struct TransferableResource {
22 uint32 id; 23 uint32 id;
23 ResourceFormat format; 24 ResourceFormat format;
25 gfx.mojom.BufferFormat buffer_format;
24 uint32 filter; 26 uint32 filter;
25 gfx.mojom.Size size; 27 gfx.mojom.Size size;
26 gpu.mojom.MailboxHolder mailbox_holder; 28 gpu.mojom.MailboxHolder mailbox_holder;
27 bool read_lock_fences_enabled; 29 bool read_lock_fences_enabled;
28 bool is_software; 30 bool is_software;
29 bool is_overlay_candidate; 31 bool is_overlay_candidate;
30 bool is_backed_by_surface_texture; 32 bool is_backed_by_surface_texture;
31 bool wants_promotion_hint; 33 bool wants_promotion_hint;
32 }; 34 };
OLDNEW
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/ipc/transferable_resource_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698