add a use_alsa gyp setting
[chromium-blink-merge.git] / cc / test / fake_proxy.cc
blobf8587ef950673163498f8d5fc34b296d101a2640
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/test/fake_proxy.h"
7 namespace cc {
9 bool FakeProxy::compositeAndReadback(void *pixels, const gfx::Rect&)
11 return true;
14 bool FakeProxy::isStarted() const
16 return true;
19 bool FakeProxy::initializeOutputSurface()
21 return true;
24 bool FakeProxy::initializeRenderer()
26 return true;
29 bool FakeProxy::recreateOutputSurface()
31 return true;
34 const RendererCapabilities& FakeProxy::rendererCapabilities() const
36 return m_capabilities;
39 RendererCapabilities& FakeProxy::rendererCapabilities()
41 return m_capabilities;
44 bool FakeProxy::commitRequested() const
46 return false;
49 size_t FakeProxy::maxPartialTextureUpdates() const
51 return m_maxPartialTextureUpdates;
54 void FakeProxy::setMaxPartialTextureUpdates(size_t max)
56 m_maxPartialTextureUpdates = max;
59 bool FakeProxy::commitPendingForTesting()
61 return false;
64 skia::RefPtr<SkPicture> FakeProxy::capturePicture()
66 return skia::RefPtr<SkPicture>();
69 scoped_ptr<base::Value> FakeProxy::asValue() const {
70 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
71 return state.PassAs<base::Value>();
75 } // namespace cc