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

Unified Diff: content/browser/compositor/reflector_impl_unittest.cc

Issue 2399983003: cc: Make OutputSurface::Reshape abstract (Closed)
Patch Set: reshapeabstract: . Created 4 years, 2 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: content/browser/compositor/reflector_impl_unittest.cc
diff --git a/content/browser/compositor/reflector_impl_unittest.cc b/content/browser/compositor/reflector_impl_unittest.cc
index e57bb02c8e1c9f839bd1db1607bb1fbe271567ed..833447712383b10c6940de06c747848285c9bf3c 100644
--- a/content/browser/compositor/reflector_impl_unittest.cc
+++ b/content/browser/compositor/reflector_impl_unittest.cc
@@ -84,7 +84,6 @@ class TestOutputSurface : public BrowserCompositorOutputSurface {
std::move(vsync_manager),
begin_frame_source,
CreateTestValidatorOzone()) {
- device_scale_factor_ = 1.f;
}
void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; }
@@ -92,6 +91,10 @@ class TestOutputSurface : public BrowserCompositorOutputSurface {
void EnsureBackbuffer() override {}
void DiscardBackbuffer() override {}
void BindFramebuffer() override {}
+ void Reshape(const gfx::Size& size,
+ float device_scale_factor,
+ const gfx::ColorSpace& color_space,
+ bool has_alpha) override {}
void SwapBuffers(cc::OutputSurfaceFrame frame) override {}
uint32_t GetFramebufferCopyTextureFormat() override { return GL_RGB; }
bool IsDisplayedAsOverlayPlane() const override { return false; }

Powered by Google App Engine
This is Rietveld 408576698