Home | History | Annotate | Download | only in output
      1 // Copyright 2013 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 
      5 #include "cc/output/context_provider.h"
      6 
      7 #include <limits>
      8 
      9 namespace cc {
     10 
     11 ContextProvider::Capabilities::Capabilities()
     12     : egl_image_external(false),
     13       fast_npot_mo8_textures(false),
     14       iosurface(false),
     15       map_image(false),
     16       post_sub_buffer(false),
     17       texture_format_bgra8888(false),
     18       texture_format_etc1(false),
     19       texture_rectangle(false),
     20       texture_storage(false),
     21       texture_usage(false),
     22       discard_framebuffer(false),
     23       max_transfer_buffer_usage_bytes(std::numeric_limits<size_t>::max()) {}
     24 
     25 ContextProvider::Capabilities::Capabilities(
     26     const gpu::Capabilities& gpu_capabilities)
     27     : egl_image_external(gpu_capabilities.egl_image_external),
     28       fast_npot_mo8_textures(gpu_capabilities.fast_npot_mo8_textures),
     29       iosurface(gpu_capabilities.iosurface),
     30       map_image(gpu_capabilities.map_image),
     31       post_sub_buffer(gpu_capabilities.post_sub_buffer),
     32       texture_format_bgra8888(gpu_capabilities.texture_format_bgra8888),
     33       texture_format_etc1(gpu_capabilities.texture_format_etc1),
     34       texture_rectangle(gpu_capabilities.texture_rectangle),
     35       texture_storage(gpu_capabilities.texture_storage),
     36       texture_usage(gpu_capabilities.texture_usage),
     37       discard_framebuffer(gpu_capabilities.discard_framebuffer),
     38       max_transfer_buffer_usage_bytes(std::numeric_limits<size_t>::max()) {}
     39 
     40 }  // namespace cc
     41