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

Unified Diff: components/mus/ws/platform_display.h

Issue 1976663003: Pull parts of TopLevelDisplayClient into DisplayCompositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RegisterSurfaceIdNamespace Created 4 years, 7 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 | « components/mus/surfaces/top_level_display_client.cc ('k') | components/mus/ws/platform_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/platform_display.h
diff --git a/components/mus/ws/platform_display.h b/components/mus/ws/platform_display.h
index 8aba25bf6cf592361e0a96c94ef26f00bd14a801..744e7222320a20a01ac81f8783cd4b1cc009a944 100644
--- a/components/mus/ws/platform_display.h
+++ b/components/mus/ws/platform_display.h
@@ -15,6 +15,7 @@
#include "base/strings/string16.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
+#include "cc/surfaces/surface.h"
#include "components/mus/public/interfaces/window_manager.mojom.h"
#include "components/mus/public/interfaces/window_manager_constants.mojom.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
@@ -49,7 +50,7 @@ namespace mus {
class GpuState;
class SurfacesState;
-class TopLevelDisplayClient;
+class DisplayCompositor;
namespace ws {
@@ -140,7 +141,7 @@ class DefaultPlatformDisplay : public PlatformDisplay,
// This is called after cc::Display has completed generating a new frame
// for the display. TODO(fsamuel): Idle time processing should happen here
// if there is budget for it.
- void DidDraw();
+ void DidDraw(cc::SurfaceDrawStatus status);
void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio);
std::unique_ptr<cc::CompositorFrame> GenerateCompositorFrame();
@@ -167,7 +168,7 @@ class DefaultPlatformDisplay : public PlatformDisplay,
base::Timer draw_timer_;
bool frame_pending_;
- std::unique_ptr<TopLevelDisplayClient> top_level_display_client_;
+ std::unique_ptr<DisplayCompositor> display_compositor_;
std::unique_ptr<ui::PlatformWindow> platform_window_;
#if !defined(OS_ANDROID)
« no previous file with comments | « components/mus/surfaces/top_level_display_client.cc ('k') | components/mus/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698