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

Side by Side Diff: cc/surfaces/surface_aggregator_unittest.cc

Issue 664803003: Update from chromium a8e7c94b1b79a0948d05a1fcfff53391d22ce37a (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/surfaces/display.cc ('k') | cc/test/data/background_filter_blur_off_axis.png » ('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 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
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
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
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/test/data/background_filter_blur_off_axis.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698