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

Unified Diff: services/ui/ws/platform_display.h

Issue 2281583003: services/ui: Split GpuServiceInternal into gpu vs. ws pieces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.08.24_mus-ws-gpu-refactor
Patch Set: tot merge Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/mus_gpu_memory_buffer_manager.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.h
diff --git a/services/ui/ws/platform_display.h b/services/ui/ws/platform_display.h
index 2209d4503956581b241ed5420caabade84d338c3..d42e4554bb4062cfd7ea41d5a43dc819afe7ccc3 100644
--- a/services/ui/ws/platform_display.h
+++ b/services/ui/ws/platform_display.h
@@ -33,6 +33,10 @@ namespace gfx {
class Rect;
}
+namespace gpu {
+class GpuChannelHost;
+}
+
namespace ui {
class CursorLoader;
class PlatformWindow;
@@ -92,6 +96,11 @@ class PlatformDisplay {
virtual bool IsPrimaryDisplay() const = 0;
+ // Notifies the PlatformDisplay that a connection to the gpu has been
+ // established.
+ virtual void OnGpuChannelEstablished(
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel) = 0;
+
// Overrides factory for testing. Default (NULL) value indicates regular
// (non-test) environment.
static void set_factory_for_testing(PlatformDisplayFactory* factory) {
@@ -131,6 +140,8 @@ class DefaultPlatformDisplay : public PlatformDisplay,
std::unique_ptr<cc::CopyOutputRequest> output_request) override;
gfx::Rect GetBounds() const override;
bool IsPrimaryDisplay() const override;
+ void OnGpuChannelEstablished(
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
private:
void UpdateMetrics(const gfx::Rect& bounds, float device_scale_factor);
« no previous file with comments | « services/ui/ws/mus_gpu_memory_buffer_manager.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698