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

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

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/platform_display.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 4f9c32c8ec4449e366556b9e894999bcb6b0ac18..e0f215a9d516bb362aa25789aa6ca5ff8e4f3b64 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -9,6 +9,7 @@
#include "cc/ipc/quads.mojom.h"
#include "cc/output/copy_output_request.h"
#include "cc/output/delegated_frame_data.h"
+#include "gpu/ipc/client/gpu_channel_host.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
#include "services/ui/surfaces/display_compositor.h"
@@ -171,6 +172,11 @@ bool DefaultPlatformDisplay::IsPrimaryDisplay() const {
return platform_screen_->GetPrimaryDisplayId() == id_;
}
+void DefaultPlatformDisplay::OnGpuChannelEstablished(
+ scoped_refptr<gpu::GpuChannelHost> channel) {
+ frame_generator_->OnGpuChannelEstablished(channel);
+}
+
void DefaultPlatformDisplay::UpdateMetrics(const gfx::Rect& bounds,
float device_scale_factor) {
if (display::Display::HasForceDeviceScaleFactor())
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698