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

Unified Diff: ui/views/mus/surface_context_factory.h

Issue 2464123003: Enabling Aura-Mus clients to submit frames to Mus. (Closed)
Patch Set: Rebase, addressing feedback, removing some unneded imports/deps. 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 | « ui/views/mus/mus_client.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/surface_context_factory.h
diff --git a/ui/views/mus/surface_context_factory.h b/ui/views/mus/surface_context_factory.h
index 8516ebb4925fa786e0f629e8f12f0d17bbc809dc..b97a43ffa9ad1cf05bc3f9dc868b75e66c94aca5 100644
--- a/ui/views/mus/surface_context_factory.h
+++ b/ui/views/mus/surface_context_factory.h
@@ -14,6 +14,12 @@
#include "ui/compositor/compositor.h"
#include "ui/views/mus/mus_export.h"
+namespace aura {
+class GpuService;
+}
+
+// TODO(mfomitchev): Remove this clause once all clients switch to using
+// Aura-Mus.
namespace ui {
class GpuService;
}
@@ -22,7 +28,10 @@ namespace views {
class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory {
public:
+ // TODO(mfomitchev): Remove this clause once all clients switch to using
+ // Aura-Mus.
explicit SurfaceContextFactory(ui::GpuService* gpu_service);
+ explicit SurfaceContextFactory(aura::GpuService* gpu_service);
~SurfaceContextFactory() override;
private:
@@ -59,7 +68,10 @@ class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory {
cc::SurfaceManager surface_manager_;
uint32_t next_sink_id_;
ui::RasterThreadHelper raster_thread_helper_;
- ui::GpuService* gpu_service_;
+ aura::GpuService* gpu_service_;
+
+ // TODO(mfomitchev): Remove once all clients switch to using Aura-Mus.
+ ui::GpuService* gpu_service_ui_;
DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
};
« no previous file with comments | « ui/views/mus/mus_client.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698