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

Unified Diff: services/ui/surfaces/display_output_surface.h

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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/surfaces/display_output_surface.h
diff --git a/services/ui/surfaces/display_output_surface.h b/services/ui/surfaces/display_output_surface.h
index db654cf1cf2b86ea9844676b0413271393dcfb48..0861c1d7bbe1a3baaa2bd52965f7df687b4a500e 100644
--- a/services/ui/surfaces/display_output_surface.h
+++ b/services/ui/surfaces/display_output_surface.h
@@ -30,6 +30,7 @@ class DisplayOutputSurface : public cc::OutputSurface {
void EnsureBackbuffer() override;
void DiscardBackbuffer() override;
void BindFramebuffer() override;
+ void SetDrawRectangle(const gfx::Rect& draw_rectangle) override;
void Reshape(const gfx::Size& size,
float device_scale_factor,
const gfx::ColorSpace& color_space,
@@ -61,6 +62,10 @@ class DisplayOutputSurface : public cc::OutputSurface {
cc::OutputSurfaceClient* client_ = nullptr;
cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
+ bool set_draw_rectangle_for_frame_ = false;
+ // True if the draw rectangle has been set at all since the last resize.
+ bool has_set_draw_rectangle_since_last_resize_ = false;
+ gfx::Size size_;
base::WeakPtrFactory<DisplayOutputSurface> weak_ptr_factory_;
};
« no previous file with comments | « gpu/ipc/service/direct_composition_surface_win_unittest.cc ('k') | services/ui/surfaces/display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698