| Index: cc/ipc/transferable_resource.mojom
|
| diff --git a/cc/ipc/transferable_resource.mojom b/cc/ipc/transferable_resource.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..508a4611da51f8e72771d97fddc64103465e2435
|
| --- /dev/null
|
| +++ b/cc/ipc/transferable_resource.mojom
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +module cc.mojom;
|
| +
|
| +import "gpu/ipc/common/mailbox_holder.mojom";
|
| +import "ui/gfx/geometry/mojo/geometry.mojom";
|
| +
|
| +enum ResourceFormat {
|
| + RGBA_8888,
|
| + RGBA_4444,
|
| + BGRA_8888,
|
| + ALPHA_8,
|
| + LUMINANCE_8,
|
| + RGB_565,
|
| + ETC1,
|
| +};
|
| +
|
| +// See cc/resources/transferable_resource.h.
|
| +struct TransferableResource {
|
| + uint32 id;
|
| + ResourceFormat format;
|
| + uint32 filter;
|
| + mojo.Size size;
|
| + gpu.mojom.MailboxHolder mailbox_holder;
|
| + bool read_lock_fences_enabled;
|
| + bool is_software;
|
| + int32 gpu_memory_buffer_id;
|
| + bool is_overlay_candidate;
|
| +};
|
|
|