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

Side by Side Diff: cc/output/gl_renderer_unittest.cc

Issue 23171014: Fix UpdateTilePriorities viewport in Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 221292 Created 7 years, 3 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 unified diff | Download patch
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/output/gl_renderer.h" 5 #include "cc/output/gl_renderer.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/debug/test_web_graphics_context_3d.h" 10 #include "cc/debug/test_web_graphics_context_3d.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 root_render_pass->SetNew( 151 root_render_pass->SetNew(
152 render_pass_id, gfx::Rect(), gfx::Rect(), gfx::Transform()); 152 render_pass_id, gfx::Rect(), gfx::Rect(), gfx::Transform());
153 render_passes_in_draw_order_.push_back(root_render_pass.Pass()); 153 render_passes_in_draw_order_.push_back(root_render_pass.Pass());
154 } 154 }
155 155
156 // RendererClient methods. 156 // RendererClient methods.
157 virtual gfx::Rect DeviceViewport() const OVERRIDE { 157 virtual gfx::Rect DeviceViewport() const OVERRIDE {
158 static gfx::Size fake_size(1, 1); 158 static gfx::Size fake_size(1, 1);
159 return gfx::Rect(fake_size); 159 return gfx::Rect(fake_size);
160 } 160 }
161 virtual gfx::Rect DeviceClip() const OVERRIDE {
162 return DeviceViewport();
163 }
161 virtual float DeviceScaleFactor() const OVERRIDE { 164 virtual float DeviceScaleFactor() const OVERRIDE {
162 return scale_factor_; 165 return scale_factor_;
163 } 166 }
164 virtual const LayerTreeSettings& Settings() const OVERRIDE { 167 virtual const LayerTreeSettings& Settings() const OVERRIDE {
165 static LayerTreeSettings fake_settings; 168 static LayerTreeSettings fake_settings;
166 return fake_settings; 169 return fake_settings;
167 } 170 }
168 virtual void SetFullRootLayerDamage() OVERRIDE { 171 virtual void SetFullRootLayerDamage() OVERRIDE {
169 set_full_root_layer_damage_count_++; 172 set_full_root_layer_damage_count_++;
170 } 173 }
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 base::MessageLoop::current()->Run(); 1627 base::MessageLoop::current()->Run();
1625 1628
1626 // The sync point should have happened. 1629 // The sync point should have happened.
1627 EXPECT_EQ(1, sync_point_callback_count); 1630 EXPECT_EQ(1, sync_point_callback_count);
1628 EXPECT_EQ(1, other_callback_count); 1631 EXPECT_EQ(1, other_callback_count);
1629 } 1632 }
1630 #endif // OS_ANDROID 1633 #endif // OS_ANDROID
1631 1634
1632 } // namespace 1635 } // namespace
1633 } // namespace cc 1636 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698