naiveproxy/services/viz/public/interfaces/compositing/resource_settings.mojom

26 lines
693 B
Plaintext
Raw Normal View History

2018-02-02 13:49:39 +03:00
// 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;
};