bitmap.mojom 484 B

123456789101112131415
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. // Each pixel is represented by 4 bytes [RGBA].
  6. // NOTE: For UI images prefer gfx.mojom.ImageSkia, which supports high-DPI.
  7. // TODO(https://crbug.com/1156872): This struct is unused and should be deleted.
  8. [Stable]
  9. struct Bitmap {
  10. uint32 width@0;
  11. uint32 height@1;
  12. array<uint8> pixels@2;
  13. };