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

Side by Side Diff: cc/layers/picture_image_layer_impl_unittest.cc

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 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/layers/painted_scrollbar_layer_impl_unittest.cc ('k') | cc/layers/picture_layer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/layers/picture_image_layer_impl.h" 5 #include "cc/layers/picture_image_layer_impl.h"
6 6
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "cc/layers/append_quads_data.h" 8 #include "cc/layers/append_quads_data.h"
9 #include "cc/quads/draw_quad.h" 9 #include "cc/quads/draw_quad.h"
10 #include "cc/test/fake_impl_proxy.h" 10 #include "cc/test/fake_impl_proxy.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 float maximum_animation_contents_scale, 69 float maximum_animation_contents_scale,
70 bool animating_transform_to_screen, 70 bool animating_transform_to_screen,
71 gfx::Rect viewport_rect) { 71 gfx::Rect viewport_rect) {
72 layer->draw_properties().ideal_contents_scale = ideal_contents_scale; 72 layer->draw_properties().ideal_contents_scale = ideal_contents_scale;
73 layer->draw_properties().device_scale_factor = device_scale_factor; 73 layer->draw_properties().device_scale_factor = device_scale_factor;
74 layer->draw_properties().page_scale_factor = page_scale_factor; 74 layer->draw_properties().page_scale_factor = page_scale_factor;
75 layer->draw_properties().maximum_animation_contents_scale = 75 layer->draw_properties().maximum_animation_contents_scale =
76 maximum_animation_contents_scale; 76 maximum_animation_contents_scale;
77 layer->draw_properties().screen_space_transform_is_animating = 77 layer->draw_properties().screen_space_transform_is_animating =
78 animating_transform_to_screen; 78 animating_transform_to_screen;
79 layer->draw_properties().visible_content_rect = viewport_rect; 79 layer->draw_properties().visible_layer_rect = viewport_rect;
80 bool resourceless_software_draw = false; 80 bool resourceless_software_draw = false;
81 layer->UpdateTiles(resourceless_software_draw); 81 layer->UpdateTiles(resourceless_software_draw);
82 } 82 }
83 83
84 protected: 84 protected:
85 FakeImplProxy proxy_; 85 FakeImplProxy proxy_;
86 TestSharedBitmapManager shared_bitmap_manager_; 86 TestSharedBitmapManager shared_bitmap_manager_;
87 TestTaskGraphRunner task_graph_runner_; 87 TestTaskGraphRunner task_graph_runner_;
88 FakeLayerTreeHostImpl host_impl_; 88 FakeLayerTreeHostImpl host_impl_;
89 }; 89 };
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 active_layer->DidDraw(nullptr); 149 active_layer->DidDraw(nullptr);
150 150
151 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list.front()->material); 151 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list.front()->material);
152 152
153 // Tiles are ready at correct scale, so should not set had_incomplete_tile. 153 // Tiles are ready at correct scale, so should not set had_incomplete_tile.
154 EXPECT_EQ(0, data.num_incomplete_tiles); 154 EXPECT_EQ(0, data.num_incomplete_tiles);
155 } 155 }
156 156
157 } // namespace 157 } // namespace
158 } // namespace cc 158 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/painted_scrollbar_layer_impl_unittest.cc ('k') | cc/layers/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698