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"
9 bool FakeProxy::compositeAndReadback(void *pixels
, const gfx::Rect
&)
14 bool FakeProxy::isStarted() const
19 bool FakeProxy::initializeOutputSurface()
24 bool FakeProxy::initializeRenderer()
29 bool FakeProxy::recreateOutputSurface()
34 const RendererCapabilities
& FakeProxy::rendererCapabilities() const
36 return m_capabilities
;
39 RendererCapabilities
& FakeProxy::rendererCapabilities()
41 return m_capabilities
;
44 bool FakeProxy::commitRequested() const
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()
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
>();