naiveproxy/services/viz/public/interfaces/compositing/resource_settings.mojom
2018-01-29 00:30:36 +08:00

26 lines
693 B
Plaintext

// 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 viz.mojom;
import "ui/gfx/mojo/buffer_types.mojom";
struct BufferToTextureTargetKey {
gfx.mojom.BufferUsage usage;
gfx.mojom.BufferFormat format;
};
struct BufferToTextureTargetPair {
BufferToTextureTargetKey key;
uint32 value;
};
// Corresponds to |viz::ResourceSettings| in
// components/viz/common/resources/resource_settings.h
struct ResourceSettings {
uint32 texture_id_allocation_chunk_size;
bool use_gpu_memory_buffer_resources;
array<BufferToTextureTargetPair> buffer_to_texture_target_map;
};