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

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

Issue 1304303002: Mac Overlays: Add sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overlay_debug
Patch Set: incorporate review feedback Created 5 years, 4 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 | « content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4bbaaa3098510cd0253301dd81877fcb831cc42e..228a596151fd2f620cb354ab04e9c347717ffbc4 100644
--- a/content/browser/compositor/reflector_impl_unittest.cc
+++ b/content/browser/compositor/reflector_impl_unittest.cc
@@ -76,7 +76,10 @@ class TestOutputSurface : public BrowserCompositorOutputSurface {
: BrowserCompositorOutputSurface(context_provider,
nullptr,
vsync_manager,
- CreateTestValidatorOzone().Pass()) {}
+ CreateTestValidatorOzone().Pass()) {
+ surface_size_ = gfx::Size(256, 256);
+ device_scale_factor_ = 1.f;
+ }
void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; }
@@ -99,8 +102,6 @@ class TestOutputSurface : public BrowserCompositorOutputSurface {
}
#endif
- gfx::Size SurfaceSize() const override { return gfx::Size(256, 256); }
-
private:
scoped_ptr<ReflectorTexture> reflector_texture_;
};
« no previous file with comments | « content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698