blob: e875200718632f0dac6185c2e2836db15781ee69 [file] [log] [blame]
// Copyright 2017 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 gfx.mojom;
import "skia/public/mojom/bitmap.mojom";
[Stable]
struct ImageSkiaRep {
// Transport of the bitmap in this representation. The type here is
// BitmapWithArbitraryBpp because this structure is marked Stable, however
// only N32-format bitmaps are allowed, similar to the skia.mojom.BitmapN32
// type.
skia.mojom.BitmapWithArbitraryBpp bitmap;
// Corresponding scale of the bitmap or 0 if unscaled.
float scale;
};
// Mojo transport for an ImageSkia via shared buffer. Note that transporting an
// ImageSkia over mojo will load all of its image representations for supported
// scales.
[Stable]
struct ImageSkia {
array<ImageSkiaRep> image_reps;
};