OLD | NEW |
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/layers/content_layer.h" | 5 #include "cc/layers/content_layer.h" |
6 | 6 |
7 #include "cc/layers/content_layer_client.h" | 7 #include "cc/layers/content_layer_client.h" |
8 #include "cc/resources/bitmap_content_layer_updater.h" | 8 #include "cc/resources/bitmap_content_layer_updater.h" |
9 #include "cc/test/fake_rendering_stats_instrumentation.h" | 9 #include "cc/test/fake_rendering_stats_instrumentation.h" |
10 #include "cc/test/geometry_test_utils.h" | 10 #include "cc/test/geometry_test_utils.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 BitmapContentLayerUpdater::Create( | 43 BitmapContentLayerUpdater::Create( |
44 ContentLayerPainter::Create(&client).PassAs<LayerPainter>(), | 44 ContentLayerPainter::Create(&client).PassAs<LayerPainter>(), |
45 &stats_instrumentation, | 45 &stats_instrumentation, |
46 0); | 46 0); |
47 | 47 |
48 gfx::Rect resulting_opaque_rect; | 48 gfx::Rect resulting_opaque_rect; |
49 updater->PrepareToUpdate(content_rect, | 49 updater->PrepareToUpdate(content_rect, |
50 gfx::Size(256, 256), | 50 gfx::Size(256, 256), |
51 contents_scale, | 51 contents_scale, |
52 contents_scale, | 52 contents_scale, |
53 &resulting_opaque_rect, | 53 &resulting_opaque_rect); |
54 NULL); | |
55 | 54 |
56 EXPECT_EQ(opaque_rect_in_content_space.ToString(), | 55 EXPECT_EQ(opaque_rect_in_content_space.ToString(), |
57 resulting_opaque_rect.ToString()); | 56 resulting_opaque_rect.ToString()); |
58 } | 57 } |
59 | 58 |
60 } // namespace | 59 } // namespace |
61 } // namespace cc | 60 } // namespace cc |
OLD | NEW |