| 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_layer_tree_host_client.h" | 5 #include "cc/test/fake_layer_tree_host_client.h" |
| 6 | 6 |
| 7 #include "cc/context_provider.h" | 7 #include "cc/output/context_provider.h" |
| 8 #include "cc/test/test_web_graphics_context_3d.h" | 8 #include "cc/test/test_web_graphics_context_3d.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 FakeLayerImplTreeHostClient::FakeLayerImplTreeHostClient(bool useSoftwareRenderi
ng, bool useDelegatingRenderer) | 12 FakeLayerImplTreeHostClient::FakeLayerImplTreeHostClient(bool useSoftwareRenderi
ng, bool useDelegatingRenderer) |
| 13 : m_useSoftwareRendering(useSoftwareRendering) | 13 : m_useSoftwareRendering(useSoftwareRendering) |
| 14 , m_useDelegatingRenderer(useDelegatingRenderer) | 14 , m_useDelegatingRenderer(useDelegatingRenderer) |
| 15 { | 15 { |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 return m_mainThreadContexts; | 47 return m_mainThreadContexts; |
| 48 } | 48 } |
| 49 | 49 |
| 50 scoped_refptr<cc::ContextProvider> FakeLayerImplTreeHostClient::OffscreenContext
ProviderForCompositorThread() { | 50 scoped_refptr<cc::ContextProvider> FakeLayerImplTreeHostClient::OffscreenContext
ProviderForCompositorThread() { |
| 51 if (!m_compositorThreadContexts || m_compositorThreadContexts->DestroyedOnMa
inThread()) | 51 if (!m_compositorThreadContexts || m_compositorThreadContexts->DestroyedOnMa
inThread()) |
| 52 m_compositorThreadContexts = FakeContextProvider::Create(); | 52 m_compositorThreadContexts = FakeContextProvider::Create(); |
| 53 return m_compositorThreadContexts; | 53 return m_compositorThreadContexts; |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace cc | 56 } // namespace cc |
| OLD | NEW |