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

Unified Diff: cc/test/fake_output_surface.cc

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.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index cafd10bf00c7fc7e71b47fbe63bdee0670475f0c..0d6c9449086e09ac9f8659622d94782fa924273b 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -67,6 +67,10 @@ void FakeOutputSurface::BindFramebuffer() {
context_provider_->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, framebuffer_);
}
+void FakeOutputSurface::SetDrawRectangle(const gfx::Rect& rect) {
+ last_set_draw_rectangle_ = rect;
+}
+
uint32_t FakeOutputSurface::GetFramebufferCopyTextureFormat() {
if (framebuffer_)
return framebuffer_format_;

Powered by Google App Engine
This is Rietveld 408576698