OLD | NEW |
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/append_quads_data.h" | 5 #include "cc/layers/append_quads_data.h" |
6 #include "cc/layers/content_layer_client.h" | 6 #include "cc/layers/content_layer_client.h" |
7 #include "cc/layers/picture_layer.h" | 7 #include "cc/layers/picture_layer.h" |
8 #include "cc/layers/picture_layer_impl.h" | 8 #include "cc/layers/picture_layer_impl.h" |
9 #include "cc/quads/draw_quad.h" | 9 #include "cc/quads/draw_quad.h" |
10 #include "cc/test/layer_tree_pixel_test.h" | 10 #include "cc/test/layer_tree_pixel_test.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // rasterization if a single solid color is detected in picture analysis. | 92 // rasterization if a single solid color is detected in picture analysis. |
93 gfx::Rect layer_rect(200, 200); | 93 gfx::Rect layer_rect(200, 200); |
94 BlueYellowLayerClient client(layer_rect); | 94 BlueYellowLayerClient client(layer_rect); |
95 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); | 95 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); |
96 | 96 |
97 layer->SetIsDrawable(true); | 97 layer->SetIsDrawable(true); |
98 layer->SetAnchorPoint(gfx::PointF()); | 98 layer->SetAnchorPoint(gfx::PointF()); |
99 layer->SetBounds(layer_rect.size()); | 99 layer->SetBounds(layer_rect.size()); |
100 layer->SetPosition(layer_rect.origin()); | 100 layer->SetPosition(layer_rect.origin()); |
101 | 101 |
102 RunPixelTest(layer, base::FilePath(FILE_PATH_LITERAL("blue_yellow.png"))); | 102 RunPixelTest(GL_WITH_BITMAP, |
| 103 layer, |
| 104 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png"))); |
103 } | 105 } |
104 | 106 |
105 } // namespace | 107 } // namespace |
106 } // namespace cc | 108 } // namespace cc |
107 | 109 |
108 #endif // OS_ANDROID | 110 #endif // OS_ANDROID |
OLD | NEW |