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"
9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id
) const {
13 bool Renderer::IsContextLost() {
17 void Renderer::SetVisible(bool visible
) {
18 if (visible_
== visible
)
22 DidChangeVisibility();
25 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
26 : best_texture_format(RGBA_8888
),
27 allow_partial_texture_updates(false),
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
,
43 using_shared_memory_resources
);