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

Unified Diff: components/view_manager/public/interfaces/compositor_frame.mojom

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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
Index: components/view_manager/public/interfaces/compositor_frame.mojom
diff --git a/components/view_manager/public/interfaces/compositor_frame.mojom b/components/view_manager/public/interfaces/compositor_frame.mojom
deleted file mode 100644
index 2be979a682a710fbd14f9ec60c3f2bbe7bd96bc5..0000000000000000000000000000000000000000
--- a/components/view_manager/public/interfaces/compositor_frame.mojom
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright 2015 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 mojo;
-
-import "ui/mojo/geometry/geometry.mojom";
-import "components/view_manager/public/interfaces/quads.mojom";
-
-enum ResourceFormat {
- RGBA_8888,
- RGBA_4444,
- BGRA_8888,
- ALPHA_8,
- LUMINANCE_8,
- RGB_565,
- ETC1,
-};
-
-// See src/cc/resources/returned_resource.h.
-struct ReturnedResource {
- uint32 id;
- uint32 sync_point;
- int32 count;
- bool lost;
-};
-
-// See src/gpu/command_buffer/common/mailbox.h.
-struct Mailbox {
- array<int8, 64> name;
-};
-
-// See src/gpu/command_buffer/common/mailbox_holder.h.
-struct MailboxHolder {
- Mailbox mailbox;
- uint32 texture_target;
- uint32 sync_point;
-};
-
-// A TransferableResource is a graphics resource such as a texture or a bitmap
-// in shared memory (software mode) that is shared between the View Manager and
-// a client. This data structure is used to manage reuse of
-// the memory once it is no longer needed by the View Manager and GPU service.
-struct TransferableResource {
- // |id| is an integer that uniquely identifies this resource in the client so
- // that the View Manager can return this resource back to the client.
- uint32 id;
- ResourceFormat format;
- uint32 filter;
- Size size;
- MailboxHolder mailbox_holder;
- bool is_repeated;
- bool is_software;
-};
-
-// See cc/output/compositor_frame_metadata.h.
-struct CompositorFrameMetadata {
- float device_scale_factor;
-};
-
-// See src/cc/output/compositor_frame.h.
-struct CompositorFrame {
- CompositorFrameMetadata metadata;
- array<TransferableResource> resources;
- array<Pass> passes;
-};
-
-// A Surface is an interface for receiving CompositorFrame structs. This is a
-// separate interface to allow CompositorFrames to be delivered from
-// supplementary (not main) threads of a mojo app.
-interface Surface {
- // After the submitted frame is drawn for the first time, the receiver will
- // respond to the SubmitFrame message. Clients should use this acknowledgement
- // to ratelimit frame submissions.
- SubmitCompositorFrame(CompositorFrame frame) => ();
-};
-
-interface SurfaceClient {
- ReturnResources(array<ReturnedResource> resources);
-};
« no previous file with comments | « components/view_manager/public/interfaces/command_buffer.mojom ('k') | components/view_manager/public/interfaces/gpu.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698