OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module cc.mojom; |
| 6 |
| 7 import "gpu/ipc/common/mailbox_holder.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 |
| 10 enum ResourceFormat { |
| 11 RGBA_8888, |
| 12 RGBA_4444, |
| 13 BGRA_8888, |
| 14 ALPHA_8, |
| 15 LUMINANCE_8, |
| 16 RGB_565, |
| 17 ETC1, |
| 18 }; |
| 19 |
| 20 // See cc/resources/transferable_resource.h. |
| 21 struct TransferableResource { |
| 22 uint32 id; |
| 23 ResourceFormat format; |
| 24 uint32 filter; |
| 25 mojo.Size size; |
| 26 gpu.mojom.MailboxHolder mailbox_holder; |
| 27 bool read_lock_fences_enabled; |
| 28 bool is_software; |
| 29 int32 gpu_memory_buffer_id; |
| 30 bool is_overlay_candidate; |
| 31 }; |
OLD | NEW |