Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Side by Side Diff: cc/test/fake_layer_tree_host_client.cc

Issue 12912006: Part 4 of cc/ directory shuffles: output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698