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

Unified Diff: ui/compositor/test/in_process_context_factory.h

Issue 2498053004: Add InProcessContextProvider and update InProcessCommandBuffer (Closed)
Patch Set: Revert experiments and fix android_webview Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.h ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_factory.h
diff --git a/ui/compositor/test/in_process_context_factory.h b/ui/compositor/test/in_process_context_factory.h
index 54266ba4e226eccaeec1eb086877515143e346b5..68914332747fe23222ec39e1e6d556731b735f96 100644
--- a/ui/compositor/test/in_process_context_factory.h
+++ b/ui/compositor/test/in_process_context_factory.h
@@ -14,6 +14,7 @@
#include "cc/test/test_image_factory.h"
#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/test/test_task_graph_runner.h"
+#include "gpu/ipc/common/surface_handle.h"
#include "ui/compositor/compositor.h"
namespace cc {
@@ -72,6 +73,10 @@ class InProcessContextFactory : public ContextFactory {
void RemoveObserver(ContextFactoryObserver* observer) override;
private:
+ struct PerCompositorData;
+
+ PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor);
+
scoped_refptr<InProcessContextProvider> shared_main_thread_contexts_;
scoped_refptr<InProcessContextProvider> shared_worker_context_provider_;
cc::TestSharedBitmapManager shared_bitmap_manager_;
@@ -84,8 +89,9 @@ class InProcessContextFactory : public ContextFactory {
cc::SurfaceManager* surface_manager_;
base::ObserverList<ContextFactoryObserver> observer_list_;
- base::hash_map<Compositor*, std::unique_ptr<cc::Display>>
- per_compositor_data_;
+ using PerCompositorDataMap =
+ base::hash_map<ui::Compositor*, std::unique_ptr<PerCompositorData>>;
+ PerCompositorDataMap per_compositor_data_;
DISALLOW_COPY_AND_ASSIGN(InProcessContextFactory);
};
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.h ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698