summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_proxy.cc
blob: d4850569b2829a85a576d0f323050441a1d0a533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// 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_proxy.h"

namespace cc {

bool FakeProxy::compositeAndReadback(void *pixels, const gfx::Rect&)
{
    return true;
}

bool FakeProxy::isStarted() const
{
    return true;
}

bool FakeProxy::initializeContext()
{
    return true;
}

bool FakeProxy::initializeRenderer()
{
    return true;
}

bool FakeProxy::recreateContext()
{
    return true;
}

const RendererCapabilities& FakeProxy::rendererCapabilities() const
{
    return m_capabilities;
}

RendererCapabilities& FakeProxy::rendererCapabilities()
{
    return m_capabilities;
}

bool FakeProxy::commitRequested() const
{
    return false;
}

size_t FakeProxy::maxPartialTextureUpdates() const
{
    return m_maxPartialTextureUpdates;
}

void FakeProxy::setMaxPartialTextureUpdates(size_t max)
{
    m_maxPartialTextureUpdates = max;
}


} // namespace cc