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

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

Issue 2759933007: [mus]Add FrameGenerator::SetHighContrastMode(bool) (Closed)
Patch Set: Addressed nits Created 3 years, 9 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/display_manager.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index baf047913dc4f5dd9548605317820170054c7b86..f9a0647dd0b88dce94e85e5050ad5f0931f06375 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -28,7 +28,6 @@ class RenderPass;
namespace ui {
namespace ws {
-class FrameGeneratorDelegate;
class ServerWindow;
// Responsible for redrawing the display in response to the redraw requests by
@@ -37,12 +36,12 @@ class FrameGenerator : public cc::CompositorFrameSinkClient,
public cc::BeginFrameObserver {
public:
FrameGenerator(
- FrameGeneratorDelegate* delegate,
ServerWindow* root_window,
std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink);
~FrameGenerator() override;
void SetDeviceScaleFactor(float device_scale_factor);
+ void SetHighContrastMode(bool enabled);
// Updates the WindowManager's SurfaceInfo.
void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
@@ -80,7 +79,6 @@ class FrameGenerator : public cc::CompositorFrameSinkClient,
// FrameGenerator as an observer to/from begin_frame_source_ accordingly.
void SetNeedsBeginFrame(bool needs_begin_frame);
- FrameGeneratorDelegate* delegate_;
ServerWindow* const root_window_;
float device_scale_factor_ = 1.f;
@@ -88,6 +86,7 @@ class FrameGenerator : public cc::CompositorFrameSinkClient,
cc::BeginFrameArgs last_begin_frame_args_;
cc::BeginFrameSource* begin_frame_source_ = nullptr;
bool observing_begin_frames_ = false;
+ bool high_contrast_mode_enabled_ = false;
cc::SurfaceInfo window_manager_surface_info_;
« no previous file with comments | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698