Home | History | Annotate | Download | only in output
      1 // Copyright 2012 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/renderer.h"
      6 
      7 namespace cc {
      8 
      9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id) const {
     10   return false;
     11 }
     12 
     13 bool Renderer::IsContextLost() {
     14   return false;
     15 }
     16 
     17 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
     18     : best_texture_format(RGBA_8888),
     19       allow_partial_texture_updates(false),
     20       using_offscreen_context3d(false),
     21       max_texture_size(0),
     22       using_shared_memory_resources(false),
     23       using_partial_swap(false),
     24       using_egl_image(false),
     25       avoid_pow2_textures(false),
     26       using_map_image(false),
     27       using_discard_framebuffer(false) {}
     28 
     29 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
     30 
     31 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
     32   return RendererCapabilities(best_texture_format,
     33                               allow_partial_texture_updates,
     34                               using_offscreen_context3d,
     35                               max_texture_size,
     36                               using_shared_memory_resources);
     37 }
     38 
     39 }  // namespace cc
     40