Commit 9f24a3a4 authored by fsamuel's avatar fsamuel Committed by Commit bot

Mus: Delete services/ui/public/interfaces/gpu

This is dead code.

BUG=none
TBR=tsepez@chromium.org

Review-Url: https://codereview.chromium.org/2550833002
Cr-Commit-Position: refs/heads/master@{#436131}
parent 0de7a03e
# 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.
import("//mojo/public/tools/bindings/mojom.gni")
mojom("interfaces") {
sources = [
"display_compositor.mojom",
"display_compositor_host.mojom",
]
public_deps = [
"//gpu/ipc/common:interfaces",
"//services/ui/public/interfaces",
]
}
per-file *.mojom=set noparent
per-file *.mojom=file://ipc/SECURITY_OWNERS
// 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 ui.gpu.mojom;
import "cc/ipc/compositor_frame.mojom";
import "cc/ipc/returned_resource.mojom";
// A CompositorFrameSinkFactory represents a single Display client.
// The client (a process) can use this interface to create
// CompositorFrameSinks.
// TODO(fsamuel): This needs a better name.
interface CompositorFrameSinkFactory {
// Requests a CompositorFrameSink interface from the display compositor.
// A CompositorFrameSink has an associated ID consisting of three components:
// 1. Namespace picked by the service associated with this
// CompositorFrameSinkFactory.
// 2. |local_id| which is a monotonically increasing ID allocated by the
// client.
// 3. |nonce| is a cryptographically secure random number making this Sink
// unguessable by other clients.
CreateCompositorFrameSink(uint32 local_id,
uint64 nonce,
CompositorFrameSink& sink,
CompositorFrameSinkClient client);
};
// This is a public interface implemented by Display clients.
// Each client implements a single instance of the DisplayClient interface.
interface DisplayClient {
// Clients can register CompositorFrameSinks via the provided |factory|.
OnClientCreated(uint32 client_id, CompositorFrameSinkFactory factory);
// TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per
// cc/output/begin_frame_args.h.
OnBeginFrame();
};
// 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 ui.gpu.mojom;
import "services/ui/public/interfaces/gpu/display_compositor.mojom";
// This is a privileged API to be used only by the Mus Window Server.
// There is one Display per accelerated widget. This corresponds to a physical
// display on Chrome OS, and a window on other Chrome platforms.
interface Display {
// Each client (process) has a unique |client_id| and implements the
// DisplayClient interface.
CreateClient(uint32 client_id, DisplayClient& client);
};
interface DisplayHost {
// TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per
// cc/output/begin_frame_args.h.
OnBeginFrame();
};
// This is a privileged API to be used only by the Mus Window Server.
// There should be only one DisplayCompositor connection.
interface DisplayCompositor {
CreateDisplay(int32 accelerated_widget,
Display& display,
DisplayHost display_host,
CompositorFrameSink& sink,
CompositorFrameSinkClient client);
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment