Revert of cc: change the GPU rasterization content veto into an MSAA trigger. (patchs...
[chromium-blink-merge.git] / cc / output / renderer.cc
blob7be8075a8e1fa33dee7d9ea7093a422f6c497d1d
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 #include "cc/quads/render_pass_id.h"
9 namespace cc {
11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const {
12 return false;
15 void Renderer::SetVisible(bool visible) {
16 if (visible_ == visible)
17 return;
19 visible_ = visible;
20 DidChangeVisibility();
23 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
24 : best_texture_format(RGBA_8888),
25 allow_partial_texture_updates(false),
26 max_texture_size(0),
27 using_shared_memory_resources(false),
28 using_partial_swap(false),
29 using_egl_image(false),
30 using_image(false),
31 using_discard_framebuffer(false),
32 allow_rasterize_on_demand(false) {
35 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
37 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
38 return RendererCapabilities(best_texture_format,
39 allow_partial_texture_updates,
40 max_texture_size,
41 using_shared_memory_resources);
44 } // namespace cc