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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 15688002: Part 1/3 (compositor) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 087a761aa9aa7b5372450fefd49ecf2bfca1ce87..0215c0a3057b69a8c508b644a0356bc037a887e2 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -2665,7 +2665,8 @@ class ReshapeTrackerContext: public TestWebGraphicsContext3D {
public:
ReshapeTrackerContext() : reshape_called_(false) {}
- virtual void reshape(int width, int height) OVERRIDE {
+ virtual void reshapeWithScaleFactor(
+ int width, int height, float scale_factor) OVERRIDE {
reshape_called_ = true;
}
@@ -4507,6 +4508,9 @@ class TestRenderer : public GLRenderer, public RendererClient {
virtual gfx::Size DeviceViewportSize() const OVERRIDE {
return viewport_size_;
}
+ virtual float DeviceScaleFactor() const OVERRIDE {
+ return 1.f;
+ }
virtual const LayerTreeSettings& Settings() const OVERRIDE {
return settings_;
}

Powered by Google App Engine
This is Rietveld 408576698