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

Side by Side Diff: mojo/examples/aura_demo/demo_context_factory.h

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_
6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ 6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_
7 7
8 #include "ui/compositor/compositor.h" 8 #include "ui/compositor/compositor.h"
9 9
10 namespace webkit { 10 namespace webkit {
(...skipping 16 matching lines...) Expand all
27 // ContextFactory implementation 27 // ContextFactory implementation
28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
29 ui::Compositor* compositor, bool software_fallback) OVERRIDE; 29 ui::Compositor* compositor, bool software_fallback) OVERRIDE;
30 30
31 virtual scoped_refptr<ui::Reflector> CreateReflector( 31 virtual scoped_refptr<ui::Reflector> CreateReflector(
32 ui::Compositor* compositor, 32 ui::Compositor* compositor,
33 ui::Layer* layer) OVERRIDE; 33 ui::Layer* layer) OVERRIDE;
34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE; 34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE;
35 35
36 virtual scoped_refptr<cc::ContextProvider> 36 virtual scoped_refptr<cc::ContextProvider>
37 OffscreenCompositorContextProvider() OVERRIDE;
38 virtual scoped_refptr<cc::ContextProvider>
39 SharedMainThreadContextProvider() OVERRIDE; 37 SharedMainThreadContextProvider() OVERRIDE;
40 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; 38 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE;
41 virtual bool DoesCreateTestContexts() OVERRIDE; 39 virtual bool DoesCreateTestContexts() OVERRIDE;
42 40
43 bool Initialize(); 41 bool Initialize();
44 42
45 private: 43 private:
46 scoped_refptr<webkit::gpu::ContextProviderInProcess> 44 scoped_refptr<webkit::gpu::ContextProviderInProcess>
47 offscreen_compositor_contexts_;
48 scoped_refptr<webkit::gpu::ContextProviderInProcess>
49 shared_main_thread_contexts_; 45 shared_main_thread_contexts_;
50 46
51 WindowTreeHostMojo* rwhm_; 47 WindowTreeHostMojo* rwhm_;
52 48
53 DISALLOW_COPY_AND_ASSIGN(DemoContextFactory); 49 DISALLOW_COPY_AND_ASSIGN(DemoContextFactory);
54 }; 50 };
55 51
56 } // namespace examples 52 } // namespace examples
57 } // namespace mojo 53 } // namespace mojo
58 54
59 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ 55 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.cc ('k') | mojo/examples/aura_demo/demo_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698