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

Unified Diff: cc/test/fake_output_surface.h

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: add unittest and move implementation around 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: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index 4a83f8d9c7793339f8c7033c6c2d76be32022b4a..57d6aaedf8e0e9d54fdf9d74a39e3a1bfcc14040 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,
@@ -101,6 +102,9 @@ class FakeOutputSurface : public OutputSurface {
const gfx::ColorSpace& last_reshape_color_space() {
return last_reshape_color_space_;
}
+ const gfx::Rect& last_set_draw_rectangle() {
danakj 2017/02/23 23:38:51 nit: white space after function body
+ return last_set_draw_rectangle_;
+ }
protected:
explicit FakeOutputSurface(scoped_refptr<ContextProvider> context_provider);
@@ -118,6 +122,7 @@ class FakeOutputSurface : public OutputSurface {
bool last_swap_rect_valid_ = false;
gfx::Rect last_swap_rect_;
gfx::ColorSpace last_reshape_color_space_;
+ gfx::Rect last_set_draw_rectangle_;
private:
void SwapBuffersAck();

Powered by Google App Engine
This is Rietveld 408576698