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

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
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..2a1f26c5157244da01227ec4615733968947b61c 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,10 @@ class PlatformDisplay {
virtual bool IsPrimaryDisplay() const = 0;
+ // Notifies the PlatformDisplay that a connection to gpu has been established.
sky 2016/08/26 16:46:30 'gpu' -> 'the gpu'
sadrul 2016/08/26 17:23:50 Done.
+ 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 +139,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);

Powered by Google App Engine
This is Rietveld 408576698