1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright 2013 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.
#include "cc/output/context_provider.h"
#include <limits>
namespace cc {
ContextProvider::Capabilities::Capabilities()
: discard_backbuffer(false),
egl_image_external(false),
fast_npot_mo8_textures(false),
iosurface(false),
map_image(false),
map_sub(false),
post_sub_buffer(false),
set_visibility(false),
shallow_flush(false),
swapbuffers_complete_callback(false),
texture_format_bgra8888(false),
texture_format_etc1(false),
texture_rectangle(false),
texture_storage(false),
texture_usage(false),
discard_framebuffer(false),
max_transfer_buffer_usage_bytes(std::numeric_limits<size_t>::max()) {}
ContextProvider::Capabilities::Capabilities(
const gpu::Capabilities& gpu_capabilities)
: discard_backbuffer(false),
egl_image_external(gpu_capabilities.egl_image_external),
fast_npot_mo8_textures(gpu_capabilities.fast_npot_mo8_textures),
iosurface(gpu_capabilities.iosurface),
map_image(gpu_capabilities.map_image),
map_sub(false),
post_sub_buffer(gpu_capabilities.post_sub_buffer),
set_visibility(false),
shallow_flush(false),
swapbuffers_complete_callback(false),
texture_format_bgra8888(gpu_capabilities.texture_format_bgra8888),
texture_format_etc1(gpu_capabilities.texture_format_etc1),
texture_rectangle(gpu_capabilities.texture_rectangle),
texture_storage(gpu_capabilities.texture_storage),
texture_usage(gpu_capabilities.texture_usage),
discard_framebuffer(gpu_capabilities.discard_framebuffer),
max_transfer_buffer_usage_bytes(std::numeric_limits<size_t>::max()) {}
} // namespace cc
|