// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module gfx.mojom;
import "ui/gfx/geometry/mojom/geometry.mojom";
union CALayerContent {
uint32 ca_context_id;
handle<platform> io_surface_mach_port;
};
// gfx::CALayerParams
struct CALayerParams {
// TODO(crbug.com/40499115): Use preprocessor to restrict platform-specific members to
// desired platform.
bool is_empty;
CALayerContent content;
gfx.mojom.Size pixel_size;
float scale_factor;
};