// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/test/fake_layer_tree_host_client.h" namespace cc { scoped_ptr FakeLayerImplTreeHostClient::createOutputSurface() { if (m_useSoftwareRendering) { if (m_useDelegatingRenderer) return FakeOutputSurface::CreateDelegatingSoftware(make_scoped_ptr(new FakeSoftwareOutputDevice).PassAs()).PassAs(); return FakeOutputSurface::CreateSoftware(make_scoped_ptr(new FakeSoftwareOutputDevice).PassAs()).PassAs(); } WebKit::WebGraphicsContext3D::Attributes attrs; if (m_useDelegatingRenderer) return FakeOutputSurface::CreateDelegating3d(TestWebGraphicsContext3D::Create(attrs).PassAs()).PassAs(); return FakeOutputSurface::Create3d(TestWebGraphicsContext3D::Create(attrs).PassAs()).PassAs(); } scoped_ptr FakeLayerImplTreeHostClient::createInputHandler() { return scoped_ptr(); } } // namespace cc