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

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

Issue 2411793008: Adds BeginFrameControl via DevTools.
Patch Set: BFC prototype v2 with allow_latency_opts and waiting for BFOs. Created 4 years 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/views/mus/surface_context_factory.h » ('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 <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override; 60 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override;
61 void ResizeDisplay(ui::Compositor* compositor, 61 void ResizeDisplay(ui::Compositor* compositor,
62 const gfx::Size& size) override; 62 const gfx::Size& size) override;
63 void SetDisplayColorSpace(ui::Compositor* compositor, 63 void SetDisplayColorSpace(ui::Compositor* compositor,
64 const gfx::ColorSpace& color_space) override {} 64 const gfx::ColorSpace& color_space) override {}
65 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 65 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
66 base::TimeDelta interval) override {} 66 base::TimeDelta interval) override {}
67 void SetDisplayVSyncParameters(ui::Compositor* compositor, 67 void SetDisplayVSyncParameters(ui::Compositor* compositor,
68 base::TimeTicks timebase, 68 base::TimeTicks timebase,
69 base::TimeDelta interval) override {} 69 base::TimeDelta interval) override {}
70 void SwapBeginFrameSource(
71 ui::Compositor* compositor,
72 std::unique_ptr<cc::BeginFrameSource>* begin_frame_source) override {}
70 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {} 73 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override {}
71 void AddObserver(ContextFactoryObserver* observer) override; 74 void AddObserver(ContextFactoryObserver* observer) override;
72 void RemoveObserver(ContextFactoryObserver* observer) override; 75 void RemoveObserver(ContextFactoryObserver* observer) override;
73 76
74 private: 77 private:
75 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_; 78 scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_;
76 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_; 79 scoped_refptr<InProcessContextProvider> shared_worker_context_provider_;
77 cc::TestSharedBitmapManager shared_bitmap_manager_; 80 cc::TestSharedBitmapManager shared_bitmap_manager_;
78 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 81 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
79 cc::TestImageFactory image_factory_; 82 cc::TestImageFactory image_factory_;
80 cc::TestTaskGraphRunner task_graph_runner_; 83 cc::TestTaskGraphRunner task_graph_runner_;
81 uint32_t next_surface_client_id_; 84 uint32_t next_surface_client_id_;
82 bool use_test_surface_; 85 bool use_test_surface_;
83 bool context_factory_for_test_; 86 bool context_factory_for_test_;
84 cc::SurfaceManager* surface_manager_; 87 cc::SurfaceManager* surface_manager_;
85 base::ObserverList<ContextFactoryObserver> observer_list_; 88 base::ObserverList<ContextFactoryObserver> observer_list_;
86 89
87 base::hash_map<Compositor*, std::unique_ptr<cc::Display>> 90 base::hash_map<Compositor*, std::unique_ptr<cc::Display>>
88 per_compositor_data_; 91 per_compositor_data_;
89 92
90 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory); 93 DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
91 }; 94 };
92 95
93 } // namespace ui 96 } // namespace ui
94 97
95 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_ 98 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/views/mus/surface_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698