OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/test/fake_proxy.h" | 5 #include "cc/test/fake_proxy.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 bool FakeProxy::compositeAndReadback(void *pixels, const gfx::Rect&) | 9 bool FakeProxy::compositeAndReadback(void *pixels, const gfx::Rect&) |
10 { | 10 { |
11 return true; | 11 return true; |
12 } | 12 } |
13 | 13 |
14 bool FakeProxy::isStarted() const | 14 bool FakeProxy::isStarted() const |
15 { | 15 { |
16 return true; | 16 return true; |
17 } | 17 } |
18 | 18 |
19 bool FakeProxy::initializeOutputSurface() | 19 bool FakeProxy::initializeContext() |
20 { | 20 { |
21 return true; | 21 return true; |
22 } | 22 } |
23 | 23 |
24 bool FakeProxy::initializeRenderer() | 24 bool FakeProxy::initializeRenderer() |
25 { | 25 { |
26 return true; | 26 return true; |
27 } | 27 } |
28 | 28 |
29 bool FakeProxy::recreateOutputSurface() | 29 bool FakeProxy::recreateContext() |
30 { | 30 { |
31 return true; | 31 return true; |
32 } | 32 } |
33 | 33 |
34 const RendererCapabilities& FakeProxy::rendererCapabilities() const | 34 const RendererCapabilities& FakeProxy::rendererCapabilities() const |
35 { | 35 { |
36 return m_capabilities; | 36 return m_capabilities; |
37 } | 37 } |
38 | 38 |
39 RendererCapabilities& FakeProxy::rendererCapabilities() | 39 RendererCapabilities& FakeProxy::rendererCapabilities() |
(...skipping 11 matching lines...) Expand all Loading... |
51 return m_maxPartialTextureUpdates; | 51 return m_maxPartialTextureUpdates; |
52 } | 52 } |
53 | 53 |
54 void FakeProxy::setMaxPartialTextureUpdates(size_t max) | 54 void FakeProxy::setMaxPartialTextureUpdates(size_t max) |
55 { | 55 { |
56 m_maxPartialTextureUpdates = max; | 56 m_maxPartialTextureUpdates = max; |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 } // namespace cc | 60 } // namespace cc |
OLD | NEW |