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

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

Issue 1889153002: cc: nine patch: add occlusion support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final nits Created 4 years, 8 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/nine_patch_layer_impl.cc ('k') | mash/wm/shadow.cc » ('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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "cc/layers/append_quads_data.h" 7 #include "cc/layers/append_quads_data.h"
8 #include "cc/layers/nine_patch_layer_impl.h" 8 #include "cc/layers/nine_patch_layer_impl.h"
9 #include "cc/quads/texture_draw_quad.h" 9 #include "cc/quads/texture_draw_quad.h"
10 #include "cc/resources/ui_resource_bitmap.h" 10 #include "cc/resources/ui_resource_bitmap.h"
(...skipping 17 matching lines...) Expand all
28 return gfx::Rect(gfx::ToRoundedInt(rect_f.x()), 28 return gfx::Rect(gfx::ToRoundedInt(rect_f.x()),
29 gfx::ToRoundedInt(rect_f.y()), 29 gfx::ToRoundedInt(rect_f.y()),
30 gfx::ToRoundedInt(rect_f.width()), 30 gfx::ToRoundedInt(rect_f.width()),
31 gfx::ToRoundedInt(rect_f.height())); 31 gfx::ToRoundedInt(rect_f.height()));
32 } 32 }
33 33
34 void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size, 34 void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size,
35 const gfx::Rect& aperture_rect, 35 const gfx::Rect& aperture_rect,
36 const gfx::Size& layer_size, 36 const gfx::Size& layer_size,
37 const gfx::Rect& border, 37 const gfx::Rect& border,
38 const gfx::Rect& occlusion,
38 bool fill_center, 39 bool fill_center,
39 size_t expected_quad_size) { 40 size_t expected_quad_size) {
40 std::unique_ptr<RenderPass> render_pass = RenderPass::Create(); 41 std::unique_ptr<RenderPass> render_pass = RenderPass::Create();
41 gfx::Rect visible_layer_rect(layer_size); 42 gfx::Rect visible_layer_rect(layer_size);
42 gfx::Rect expected_remaining(border.x(), 43 gfx::Rect expected_layer_remaining;
43 border.y(), 44 gfx::Rect expected_tex_remaining;
44 layer_size.width() - border.width(), 45
45 layer_size.height() - border.height()); 46 if (!occlusion.IsEmpty()) {
47 expected_layer_remaining = occlusion;
48 expected_tex_remaining.SetRect(
49 occlusion.x(), occlusion.y(),
50 (bitmap_size.width() - occlusion.x()) -
51 (layer_size.width() - occlusion.right()),
52 (bitmap_size.height() - occlusion.y()) -
53 (layer_size.height() - occlusion.bottom()));
54 } else {
55 expected_layer_remaining.SetRect(border.x(), border.y(),
56 layer_size.width() - border.width(),
57 layer_size.height() - border.height());
58 expected_tex_remaining = aperture_rect;
59 }
46 60
47 FakeImplTaskRunnerProvider task_runner_provider; 61 FakeImplTaskRunnerProvider task_runner_provider;
48 TestSharedBitmapManager shared_bitmap_manager; 62 TestSharedBitmapManager shared_bitmap_manager;
49 TestTaskGraphRunner task_graph_runner; 63 TestTaskGraphRunner task_graph_runner;
50 std::unique_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d(); 64 std::unique_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d();
51 FakeUIResourceLayerTreeHostImpl host_impl( 65 FakeUIResourceLayerTreeHostImpl host_impl(
52 &task_runner_provider, &shared_bitmap_manager, &task_graph_runner); 66 &task_runner_provider, &shared_bitmap_manager, &task_graph_runner);
53 host_impl.SetVisible(true); 67 host_impl.SetVisible(true);
54 host_impl.InitializeRenderer(output_surface.get()); 68 host_impl.InitializeRenderer(output_surface.get());
55 69
56 std::unique_ptr<NinePatchLayerImpl> layer = 70 std::unique_ptr<NinePatchLayerImpl> layer =
57 NinePatchLayerImpl::Create(host_impl.active_tree(), 1); 71 NinePatchLayerImpl::Create(host_impl.active_tree(), 1);
58 layer->draw_properties().visible_layer_rect = visible_layer_rect; 72 layer->draw_properties().visible_layer_rect = visible_layer_rect;
59 layer->SetBounds(layer_size); 73 layer->SetBounds(layer_size);
60 layer->SetForceRenderSurface(true); 74 layer->SetForceRenderSurface(true);
61 75
62 UIResourceId uid = 1; 76 UIResourceId uid = 1;
63 bool is_opaque = false; 77 bool is_opaque = false;
64 UIResourceBitmap bitmap(bitmap_size, is_opaque); 78 UIResourceBitmap bitmap(bitmap_size, is_opaque);
65 79
66 host_impl.CreateUIResource(uid, bitmap); 80 host_impl.CreateUIResource(uid, bitmap);
67 layer->SetUIResourceId(uid); 81 layer->SetUIResourceId(uid);
68 layer->SetImageBounds(bitmap_size); 82 layer->SetImageBounds(bitmap_size);
69 layer->SetLayout(aperture_rect, border, fill_center, false); 83 layer->SetLayout(aperture_rect, border, occlusion, fill_center, false);
70 AppendQuadsData data; 84 AppendQuadsData data;
71 layer->AppendQuads(render_pass.get(), &data); 85 layer->AppendQuads(render_pass.get(), &data);
72 86
73 // Verify quad rects 87 // Verify quad rects
74 const QuadList& quads = render_pass->quad_list; 88 const QuadList& quads = render_pass->quad_list;
75 EXPECT_EQ(expected_quad_size, quads.size()); 89 EXPECT_EQ(expected_quad_size, quads.size());
76 90
77 Region remaining(visible_layer_rect); 91 Region layer_remaining(visible_layer_rect);
78 for (auto iter = quads.cbegin(); iter != quads.cend(); ++iter) { 92 for (auto iter = quads.cbegin(); iter != quads.cend(); ++iter) {
79 gfx::Rect quad_rect = iter->rect; 93 gfx::Rect quad_rect = iter->rect;
80 94
81 EXPECT_TRUE(visible_layer_rect.Contains(quad_rect)) << iter.index(); 95 EXPECT_TRUE(visible_layer_rect.Contains(quad_rect)) << iter.index();
82 EXPECT_TRUE(remaining.Contains(quad_rect)) << iter.index(); 96 EXPECT_TRUE(layer_remaining.Contains(quad_rect)) << iter.index();
83 remaining.Subtract(Region(quad_rect)); 97 layer_remaining.Subtract(Region(quad_rect));
84 } 98 }
85 99
86 // Check if the left-over quad is the same size as the mapped aperture quad in 100 // Check if the left-over quad is the same size as the mapped aperture quad in
87 // layer space. 101 // layer space.
88 if (!fill_center) { 102 if (!fill_center) {
89 EXPECT_EQ(expected_remaining, remaining.bounds()); 103 EXPECT_EQ(expected_layer_remaining, layer_remaining.bounds());
90 } else { 104 } else {
91 EXPECT_TRUE(remaining.bounds().IsEmpty()); 105 EXPECT_TRUE(layer_remaining.bounds().IsEmpty());
92 } 106 }
93 107
94 // Verify UV rects 108 // Verify UV rects
95 gfx::Rect bitmap_rect(bitmap_size); 109 gfx::Rect bitmap_rect(bitmap_size);
96 Region tex_remaining(bitmap_rect); 110 Region tex_remaining(bitmap_rect);
97 for (const auto& quad : quads) { 111 for (const auto& quad : quads) {
98 const TextureDrawQuad* tex_quad = TextureDrawQuad::MaterialCast(quad); 112 const TextureDrawQuad* tex_quad = TextureDrawQuad::MaterialCast(quad);
99 gfx::RectF tex_rect = 113 gfx::RectF tex_rect =
100 gfx::BoundingRect(tex_quad->uv_top_left, tex_quad->uv_bottom_right); 114 gfx::BoundingRect(tex_quad->uv_top_left, tex_quad->uv_bottom_right);
101 tex_rect.Scale(bitmap_size.width(), bitmap_size.height()); 115 tex_rect.Scale(bitmap_size.width(), bitmap_size.height());
102 tex_remaining.Subtract(Region(ToRoundedIntRect(tex_rect))); 116 tex_remaining.Subtract(Region(ToRoundedIntRect(tex_rect)));
103 } 117 }
104 118
105 if (!fill_center) { 119 if (!fill_center) {
106 EXPECT_EQ(aperture_rect, tex_remaining.bounds()); 120 EXPECT_EQ(expected_tex_remaining, tex_remaining.bounds());
107 Region aperture_region(aperture_rect); 121 Region aperture_region(expected_tex_remaining);
108 EXPECT_EQ(aperture_region, tex_remaining); 122 EXPECT_EQ(aperture_region, tex_remaining);
109 } else { 123 } else {
110 EXPECT_TRUE(remaining.bounds().IsEmpty()); 124 EXPECT_TRUE(layer_remaining.bounds().IsEmpty());
111 } 125 }
112 } 126 }
113 127
114 TEST(NinePatchLayerImplTest, VerifyDrawQuads) { 128 TEST(NinePatchLayerImplTest, VerifyDrawQuads) {
115 // Input is a 100x100 bitmap with a 40x50 aperture at x=20, y=30. 129 // Input is a 100x100 bitmap with a 40x50 aperture at x=20, y=30.
116 // The bounds of the layer are set to 400x400. 130 // The bounds of the layer are set to 400x400.
117 gfx::Size bitmap_size(100, 100); 131 gfx::Size bitmap_size(100, 100);
118 gfx::Size layer_size(400, 500); 132 gfx::Size layer_size(400, 500);
119 gfx::Rect aperture_rect(20, 30, 40, 50); 133 gfx::Rect aperture_rect(20, 30, 40, 50);
120 gfx::Rect border(40, 40, 80, 80); 134 gfx::Rect border(40, 40, 80, 80);
121 bool fill_center = false; 135 bool fill_center = false;
122 size_t expected_quad_size = 8; 136 size_t expected_quad_size = 8;
123 NinePatchLayerLayoutTest(bitmap_size, 137 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
124 aperture_rect, 138 gfx::Rect(), fill_center, expected_quad_size);
125 layer_size,
126 border,
127 fill_center,
128 expected_quad_size);
129 139
130 // The bounds of the layer are set to less than the bitmap size. 140 // The bounds of the layer are set to less than the bitmap size.
131 bitmap_size = gfx::Size(100, 100); 141 bitmap_size = gfx::Size(100, 100);
132 layer_size = gfx::Size(40, 50); 142 layer_size = gfx::Size(40, 50);
133 aperture_rect = gfx::Rect(20, 30, 40, 50); 143 aperture_rect = gfx::Rect(20, 30, 40, 50);
134 border = gfx::Rect(10, 10, 25, 15); 144 border = gfx::Rect(10, 10, 25, 15);
135 fill_center = true; 145 fill_center = true;
136 expected_quad_size = 9; 146 expected_quad_size = 9;
137 NinePatchLayerLayoutTest(bitmap_size, 147 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
138 aperture_rect, 148 gfx::Rect(), fill_center, expected_quad_size);
139 layer_size,
140 border,
141 fill_center,
142 expected_quad_size);
143 149
144 // Layer and image sizes are equal. 150 // Layer and image sizes are equal.
145 bitmap_size = gfx::Size(100, 100); 151 bitmap_size = gfx::Size(100, 100);
146 layer_size = gfx::Size(100, 100); 152 layer_size = gfx::Size(100, 100);
147 aperture_rect = gfx::Rect(20, 30, 40, 50); 153 aperture_rect = gfx::Rect(20, 30, 40, 50);
148 border = gfx::Rect(20, 30, 40, 50); 154 border = gfx::Rect(20, 30, 40, 50);
149 fill_center = true; 155 fill_center = true;
150 expected_quad_size = 9; 156 expected_quad_size = 9;
151 NinePatchLayerLayoutTest(bitmap_size, 157 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
152 aperture_rect, 158 gfx::Rect(), fill_center, expected_quad_size);
153 layer_size, 159 }
154 border, 160
155 fill_center, 161 TEST(NinePatchLayerImplTest, VerifyDrawQuadsWithOcclusion) {
156 expected_quad_size); 162 // Input is a 100x100 bitmap with a 40x50 aperture at x=20, y=30.
163 // The bounds of the layer are set to 400x400.
164 gfx::Size bitmap_size(100, 100);
165 gfx::Rect aperture_rect(30, 30, 40, 40);
166 gfx::Size layer_size(400, 400);
167 gfx::Rect occlusion(20, 20, 360, 360);
168 bool fill_center = false;
169 size_t expected_quad_size = 12;
170 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, gfx::Rect(),
171 occlusion, fill_center, expected_quad_size);
157 } 172 }
158 173
159 TEST(NinePatchLayerImplTest, VerifyDrawQuadsWithEmptyPatches) { 174 TEST(NinePatchLayerImplTest, VerifyDrawQuadsWithEmptyPatches) {
160 // The top component of the 9-patch is empty, so there should be no quads for 175 // The top component of the 9-patch is empty, so there should be no quads for
161 // the top three components. 176 // the top three components.
162 gfx::Size bitmap_size(100, 100); 177 gfx::Size bitmap_size(100, 100);
163 gfx::Size layer_size(100, 100); 178 gfx::Size layer_size(100, 100);
164 gfx::Rect aperture_rect(10, 0, 80, 90); 179 gfx::Rect aperture_rect(10, 0, 80, 90);
165 gfx::Rect border(10, 0, 20, 10); 180 gfx::Rect border(10, 0, 20, 10);
166 bool fill_center = false; 181 bool fill_center = false;
167 size_t expected_quad_size = 5; 182 size_t expected_quad_size = 5;
168 NinePatchLayerLayoutTest(bitmap_size, 183 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
169 aperture_rect, 184 gfx::Rect(), fill_center, expected_quad_size);
170 layer_size,
171 border,
172 fill_center,
173 expected_quad_size);
174 185
175 // The top and left components of the 9-patch are empty, so there should be no 186 // The top and left components of the 9-patch are empty, so there should be no
176 // quads for the left and top components. 187 // quads for the left and top components.
177 bitmap_size = gfx::Size(100, 100); 188 bitmap_size = gfx::Size(100, 100);
178 layer_size = gfx::Size(100, 100); 189 layer_size = gfx::Size(100, 100);
179 aperture_rect = gfx::Rect(0, 0, 90, 90); 190 aperture_rect = gfx::Rect(0, 0, 90, 90);
180 border = gfx::Rect(0, 0, 10, 10); 191 border = gfx::Rect(0, 0, 10, 10);
181 fill_center = false; 192 fill_center = false;
182 expected_quad_size = 3; 193 expected_quad_size = 3;
183 NinePatchLayerLayoutTest(bitmap_size, 194 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
184 aperture_rect, 195 gfx::Rect(), fill_center, expected_quad_size);
185 layer_size,
186 border,
187 fill_center,
188 expected_quad_size);
189 196
190 // The aperture is the size of the bitmap and the center doesn't draw. 197 // The aperture is the size of the bitmap and the center doesn't draw.
191 bitmap_size = gfx::Size(100, 100); 198 bitmap_size = gfx::Size(100, 100);
192 layer_size = gfx::Size(100, 100); 199 layer_size = gfx::Size(100, 100);
193 aperture_rect = gfx::Rect(0, 0, 100, 100); 200 aperture_rect = gfx::Rect(0, 0, 100, 100);
194 border = gfx::Rect(0, 0, 0, 0); 201 border = gfx::Rect(0, 0, 0, 0);
195 fill_center = false; 202 fill_center = false;
196 expected_quad_size = 0; 203 expected_quad_size = 0;
197 NinePatchLayerLayoutTest(bitmap_size, 204 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
198 aperture_rect, 205 gfx::Rect(), fill_center, expected_quad_size);
199 layer_size,
200 border,
201 fill_center,
202 expected_quad_size);
203 206
204 // The aperture is the size of the bitmap and the center does draw. 207 // The aperture is the size of the bitmap and the center does draw.
205 bitmap_size = gfx::Size(100, 100); 208 bitmap_size = gfx::Size(100, 100);
206 layer_size = gfx::Size(100, 100); 209 layer_size = gfx::Size(100, 100);
207 aperture_rect = gfx::Rect(0, 0, 100, 100); 210 aperture_rect = gfx::Rect(0, 0, 100, 100);
208 border = gfx::Rect(0, 0, 0, 0); 211 border = gfx::Rect(0, 0, 0, 0);
209 fill_center = true; 212 fill_center = true;
210 expected_quad_size = 1; 213 expected_quad_size = 1;
211 NinePatchLayerLayoutTest(bitmap_size, 214 NinePatchLayerLayoutTest(bitmap_size, aperture_rect, layer_size, border,
212 aperture_rect, 215 gfx::Rect(), fill_center, expected_quad_size);
213 layer_size,
214 border,
215 fill_center,
216 expected_quad_size);
217 } 216 }
218 217
219 TEST(NinePatchLayerImplTest, Occlusion) { 218 TEST(NinePatchLayerImplTest, Occlusion) {
220 gfx::Size layer_size(1000, 1000); 219 gfx::Size layer_size(1000, 1000);
221 gfx::Size viewport_size(1000, 1000); 220 gfx::Size viewport_size(1000, 1000);
222 221
223 LayerTestCommon::LayerImplTest impl; 222 LayerTestCommon::LayerImplTest impl;
224 223
225 SkBitmap sk_bitmap; 224 SkBitmap sk_bitmap;
226 sk_bitmap.allocN32Pixels(10, 10); 225 sk_bitmap.allocN32Pixels(10, 10);
227 sk_bitmap.setImmutable(); 226 sk_bitmap.setImmutable();
228 UIResourceId uid = 5; 227 UIResourceId uid = 5;
229 UIResourceBitmap bitmap(sk_bitmap); 228 UIResourceBitmap bitmap(sk_bitmap);
230 impl.host_impl()->CreateUIResource(uid, bitmap); 229 impl.host_impl()->CreateUIResource(uid, bitmap);
231 230
232 NinePatchLayerImpl* nine_patch_layer_impl = 231 NinePatchLayerImpl* nine_patch_layer_impl =
233 impl.AddChildToRoot<NinePatchLayerImpl>(); 232 impl.AddChildToRoot<NinePatchLayerImpl>();
234 nine_patch_layer_impl->SetBounds(layer_size); 233 nine_patch_layer_impl->SetBounds(layer_size);
235 nine_patch_layer_impl->SetDrawsContent(true); 234 nine_patch_layer_impl->SetDrawsContent(true);
236 nine_patch_layer_impl->SetUIResourceId(uid); 235 nine_patch_layer_impl->SetUIResourceId(uid);
237 nine_patch_layer_impl->SetImageBounds(gfx::Size(10, 10)); 236 nine_patch_layer_impl->SetImageBounds(gfx::Size(10, 10));
238 237
239 gfx::Rect aperture = gfx::Rect(3, 3, 4, 4); 238 gfx::Rect aperture = gfx::Rect(3, 3, 4, 4);
240 gfx::Rect border = gfx::Rect(300, 300, 400, 400); 239 gfx::Rect border = gfx::Rect(300, 300, 400, 400);
241 nine_patch_layer_impl->SetLayout(aperture, border, true, false); 240 nine_patch_layer_impl->SetLayout(aperture, border, gfx::Rect(), true, false);
242 241
243 impl.CalcDrawProps(viewport_size); 242 impl.CalcDrawProps(viewport_size);
244 243
245 { 244 {
246 SCOPED_TRACE("No occlusion"); 245 SCOPED_TRACE("No occlusion");
247 gfx::Rect occluded; 246 gfx::Rect occluded;
248 impl.AppendQuadsWithOcclusion(nine_patch_layer_impl, occluded); 247 impl.AppendQuadsWithOcclusion(nine_patch_layer_impl, occluded);
249 248
250 LayerTestCommon::VerifyQuadsExactlyCoverRect(impl.quad_list(), 249 LayerTestCommon::VerifyQuadsExactlyCoverRect(impl.quad_list(),
251 gfx::Rect(layer_size)); 250 gfx::Rect(layer_size));
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 impl.CalcDrawProps(viewport_size); 308 impl.CalcDrawProps(viewport_size);
310 309
311 { 310 {
312 SCOPED_TRACE("Use opaque image"); 311 SCOPED_TRACE("Use opaque image");
313 312
314 nine_patch_layer_impl->SetUIResourceId(uid_opaque); 313 nine_patch_layer_impl->SetUIResourceId(uid_opaque);
315 nine_patch_layer_impl->SetImageBounds(gfx::Size(10, 10)); 314 nine_patch_layer_impl->SetImageBounds(gfx::Size(10, 10));
316 315
317 gfx::Rect aperture = gfx::Rect(3, 3, 4, 4); 316 gfx::Rect aperture = gfx::Rect(3, 3, 4, 4);
318 gfx::Rect border = gfx::Rect(300, 300, 400, 400); 317 gfx::Rect border = gfx::Rect(300, 300, 400, 400);
319 nine_patch_layer_impl->SetLayout(aperture, border, true, false); 318 nine_patch_layer_impl->SetLayout(aperture, border, gfx::Rect(), true,
319 false);
320 320
321 impl.AppendQuadsWithOcclusion(nine_patch_layer_impl, gfx::Rect()); 321 impl.AppendQuadsWithOcclusion(nine_patch_layer_impl, gfx::Rect());
322 322
323 const QuadList &quad_list = impl.quad_list(); 323 const QuadList &quad_list = impl.quad_list();
324 for (QuadList::ConstBackToFrontIterator it = quad_list.BackToFrontBegin(); 324 for (QuadList::ConstBackToFrontIterator it = quad_list.BackToFrontBegin();
325 it != quad_list.BackToFrontEnd(); ++it) 325 it != quad_list.BackToFrontEnd(); ++it)
326 EXPECT_FALSE(it->ShouldDrawWithBlending()); 326 EXPECT_FALSE(it->ShouldDrawWithBlending());
327 } 327 }
328 328
329 { 329 {
330 SCOPED_TRACE("Use tranparent image"); 330 SCOPED_TRACE("Use tranparent image");
331 331
332 nine_patch_layer_impl->SetUIResourceId(uid_alpha); 332 nine_patch_layer_impl->SetUIResourceId(uid_alpha);
333 333
334 impl.AppendQuadsWithOcclusion(nine_patch_layer_impl, gfx::Rect()); 334 impl.AppendQuadsWithOcclusion(nine_patch_layer_impl, gfx::Rect());
335 335
336 const QuadList &quad_list = impl.quad_list(); 336 const QuadList &quad_list = impl.quad_list();
337 for (QuadList::ConstBackToFrontIterator it = quad_list.BackToFrontBegin(); 337 for (QuadList::ConstBackToFrontIterator it = quad_list.BackToFrontBegin();
338 it != quad_list.BackToFrontEnd(); ++it) 338 it != quad_list.BackToFrontEnd(); ++it)
339 EXPECT_TRUE(it->ShouldDrawWithBlending()); 339 EXPECT_TRUE(it->ShouldDrawWithBlending());
340 } 340 }
341 } 341 }
342 342
343 } // namespace 343 } // namespace
344 } // namespace cc 344 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/nine_patch_layer_impl.cc ('k') | mash/wm/shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698