Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / cc / output / renderer.cc
blobe17714911ed6f3d427b9cafef2234a53101c73ae
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.
5 #include "cc/output/renderer.h"
7 namespace cc {
9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id) const {
10 return false;
13 bool Renderer::IsContextLost() {
14 return false;
17 void Renderer::SetVisible(bool visible) {
18 if (visible_ == visible)
19 return;
21 visible_ = visible;
22 DidChangeVisibility();
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) {}
37 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
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);
46 } // namespace cc