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 void Renderer::SetVisible(bool visible) {
     18   if (visible_ == visible)
     19     return;
     20 
     21   visible_ = visible;
     22   DidChangeVisibility();
     23 }
     24 
     25 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
     26     : best_texture_format(RGBA_8888),
     27       allow_partial_texture_updates(false),
     28       max_texture_size(0),
     29       using_shared_memory_resources(false),
     30       using_partial_swap(false),
     31       using_egl_image(false),
     32       avoid_pow2_textures(false),
     33       using_map_image(false),
     34       using_discard_framebuffer(false),
     35       allow_rasterize_on_demand(false) {}
     36 
     37 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
     38 
     39 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
     40   return RendererCapabilities(best_texture_format,
     41                               allow_partial_texture_updates,
     42                               max_texture_size,
     43                               using_shared_memory_resources);
     44 }
     45 
     46 }  // namespace cc
     47