Fake PO2TS GetRequestContext should return NULL.
[chromium-blink-merge.git] / cc / output / renderer.cc
blobb0c4a60dbb7d36550c63995ffe66f1a3ce6edf06
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 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 allow_rasterize_on_demand(false) {}
30 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
32 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
33 return RendererCapabilities(best_texture_format,
34 allow_partial_texture_updates,
35 using_offscreen_context3d,
36 max_texture_size,
37 using_shared_memory_resources);
40 } // namespace cc