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

Side by Side Diff: ui/compositor/test/in_process_context_factory.h

Issue 953803005: ui: Move software fallback decisions to GpuProcessTransportFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fallback: winfixandshould Created 5 years, 10 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
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
7 7
8 #include "cc/test/test_gpu_memory_buffer_manager.h" 8 #include "cc/test/test_gpu_memory_buffer_manager.h"
9 #include "cc/test/test_shared_bitmap_manager.h" 9 #include "cc/test/test_shared_bitmap_manager.h"
10 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
(...skipping 17 matching lines...) Expand all
28 cc::SurfaceManager* surface_manager); 28 cc::SurfaceManager* surface_manager);
29 ~InProcessContextFactory() override; 29 ~InProcessContextFactory() override;
30 30
31 // If true (the default) an OutputSurface is created that does not display 31 // If true (the default) an OutputSurface is created that does not display
32 // anything. Set to false if you want to see results on the screen. 32 // anything. Set to false if you want to see results on the screen.
33 void set_use_test_surface(bool use_test_surface) { 33 void set_use_test_surface(bool use_test_surface) {
34 use_test_surface_ = use_test_surface; 34 use_test_surface_ = use_test_surface;
35 } 35 }
36 36
37 // ContextFactory implementation 37 // ContextFactory implementation
38 void CreateOutputSurface(base::WeakPtr<Compositor> compositor, 38 void CreateOutputSurface(base::WeakPtr<Compositor> compositor) override;
39 bool software_fallback) override;
40 39
41 scoped_refptr<Reflector> CreateReflector(Compositor* mirrored_compositor, 40 scoped_refptr<Reflector> CreateReflector(Compositor* mirrored_compositor,
42 Layer* mirroring_layer) override; 41 Layer* mirroring_layer) override;
43 void RemoveReflector(scoped_refptr<Reflector> reflector) override; 42 void RemoveReflector(scoped_refptr<Reflector> reflector) override;
44 43
45 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 44 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
46 void RemoveCompositor(Compositor* compositor) override; 45 void RemoveCompositor(Compositor* compositor) override;
47 bool DoesCreateTestContexts() override; 46 bool DoesCreateTestContexts() override;
48 cc::SharedBitmapManager* GetSharedBitmapManager() override; 47 cc::SharedBitmapManager* GetSharedBitmapManager() override;
49 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 48 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
(...skipping 11 matching lines...) Expand all
61 cc::SurfaceManager* surface_manager_; 60 cc::SurfaceManager* surface_manager_;
62 61
63 base::hash_map<Compositor*, cc::OnscreenDisplayClient*> per_compositor_data_; 62 base::hash_map<Compositor*, cc::OnscreenDisplayClient*> per_compositor_data_;
64 63
65 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 64 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
66 }; 65 };
67 66
68 } // namespace ui 67 } // namespace ui
69 68
70 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 69 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698