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

Unified Diff: cc/test/fake_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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index bf8ef86640a0dc7c9acb441539e23f4c8d3d59b2..05c19013e2647665f544d8c723b40d43fd53e7dc 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -62,6 +62,7 @@ class FakeOutputSurface : public OutputSurface {
void EnsureBackbuffer() override {}
void DiscardBackbuffer() override {}
void BindFramebuffer() override;
+ void SetDrawRectangle(const gfx::Rect& rect) override;
void Reshape(const gfx::Size& size,
float device_scale_factor,
const gfx::ColorSpace& color_space,
@@ -97,6 +98,10 @@ class FakeOutputSurface : public OutputSurface {
return last_reshape_color_space_;
}
+ const gfx::Rect& last_set_draw_rectangle() {
+ return last_set_draw_rectangle_;
+ }
+
protected:
explicit FakeOutputSurface(scoped_refptr<ContextProvider> context_provider);
explicit FakeOutputSurface(
@@ -111,6 +116,7 @@ class FakeOutputSurface : public OutputSurface {
GLenum framebuffer_format_ = 0;
OverlayCandidateValidator* overlay_candidate_validator_ = nullptr;
gfx::ColorSpace last_reshape_color_space_;
+ gfx::Rect last_set_draw_rectangle_;
private:
void SwapBuffersAck();
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698