OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/compositor_frame.h" | 5 #include "cc/output/compositor_frame.h" |
6 #include "cc/output/delegated_frame_data.h" | 6 #include "cc/output/delegated_frame_data.h" |
7 #include "cc/quads/render_pass.h" | 7 #include "cc/quads/render_pass.h" |
8 #include "cc/quads/render_pass_draw_quad.h" | 8 #include "cc/quads/render_pass_draw_quad.h" |
9 #include "cc/quads/solid_color_draw_quad.h" | 9 #include "cc/quads/solid_color_draw_quad.h" |
10 #include "cc/quads/surface_draw_quad.h" | 10 #include "cc/quads/surface_draw_quad.h" |
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 make_scoped_ptr(new SoftwareOutputDevice)); | 1120 make_scoped_ptr(new SoftwareOutputDevice)); |
1121 output_surface_->BindToClient(&output_surface_client_); | 1121 output_surface_->BindToClient(&output_surface_client_); |
1122 shared_bitmap_manager_.reset(new TestSharedBitmapManager); | 1122 shared_bitmap_manager_.reset(new TestSharedBitmapManager); |
1123 | 1123 |
1124 resource_provider_ = ResourceProvider::Create(output_surface_.get(), | 1124 resource_provider_ = ResourceProvider::Create(output_surface_.get(), |
1125 shared_bitmap_manager_.get(), | 1125 shared_bitmap_manager_.get(), |
1126 NULL, | 1126 NULL, |
1127 NULL, | 1127 NULL, |
1128 0, | 1128 0, |
1129 false, | 1129 false, |
1130 1, | 1130 1); |
1131 false); | |
1132 | 1131 |
1133 aggregator_.reset( | 1132 aggregator_.reset( |
1134 new SurfaceAggregator(&manager_, resource_provider_.get())); | 1133 new SurfaceAggregator(&manager_, resource_provider_.get())); |
1135 } | 1134 } |
1136 | 1135 |
1137 protected: | 1136 protected: |
1138 SurfaceManager manager_; | 1137 SurfaceManager manager_; |
1139 FakeOutputSurfaceClient output_surface_client_; | 1138 FakeOutputSurfaceClient output_surface_client_; |
1140 scoped_ptr<OutputSurface> output_surface_; | 1139 scoped_ptr<OutputSurface> output_surface_; |
1141 scoped_ptr<SharedBitmapManager> shared_bitmap_manager_; | 1140 scoped_ptr<SharedBitmapManager> shared_bitmap_manager_; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 returned_ids[i] = client.returned_resources()[i].id; | 1230 returned_ids[i] = client.returned_resources()[i].id; |
1232 } | 1231 } |
1233 EXPECT_THAT(returned_ids, | 1232 EXPECT_THAT(returned_ids, |
1234 testing::WhenSorted(testing::ElementsAreArray(ids))); | 1233 testing::WhenSorted(testing::ElementsAreArray(ids))); |
1235 factory.Destroy(surface_id); | 1234 factory.Destroy(surface_id); |
1236 } | 1235 } |
1237 | 1236 |
1238 } // namespace | 1237 } // namespace |
1239 } // namespace cc | 1238 } // namespace cc |
1240 | 1239 |
OLD | NEW |