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

Unified Diff: cc/surfaces/surface_aggregator_unittest.cc

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: rebase Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: cc/surfaces/surface_aggregator_unittest.cc
diff --git a/cc/surfaces/surface_aggregator_unittest.cc b/cc/surfaces/surface_aggregator_unittest.cc
index 804620a35bba4d37149d4a2591b425e6bd3bf139..990003c6639b8420db6d69c0d191ce27e2aa9eb6 100644
--- a/cc/surfaces/surface_aggregator_unittest.cc
+++ b/cc/surfaces/surface_aggregator_unittest.cc
@@ -24,8 +24,6 @@
#include "cc/surfaces/surface_factory_client.h"
#include "cc/surfaces/surface_id_allocator.h"
#include "cc/surfaces/surface_manager.h"
-#include "cc/test/fake_output_surface.h"
-#include "cc/test/fake_output_surface_client.h"
#include "cc/test/fake_resource_provider.h"
#include "cc/test/render_pass_test_utils.h"
#include "cc/test/surface_aggregator_test_helpers.h"
@@ -1825,13 +1823,9 @@ TEST_F(SurfaceAggregatorPartialSwapTest, IgnoreOutside) {
class SurfaceAggregatorWithResourcesTest : public testing::Test {
public:
void SetUp() override {
- output_surface_ = FakeOutputSurface::CreateSoftware(
- base::WrapUnique(new SoftwareOutputDevice));
- output_surface_->BindToClient(&output_surface_client_);
shared_bitmap_manager_.reset(new TestSharedBitmapManager);
-
- resource_provider_ = FakeResourceProvider::Create(
- output_surface_.get(), shared_bitmap_manager_.get());
+ resource_provider_ =
+ FakeResourceProvider::Create(nullptr, shared_bitmap_manager_.get());
aggregator_.reset(
new SurfaceAggregator(&manager_, resource_provider_.get(), false));
@@ -1840,8 +1834,6 @@ class SurfaceAggregatorWithResourcesTest : public testing::Test {
protected:
SurfaceManager manager_;
- FakeOutputSurfaceClient output_surface_client_;
- std::unique_ptr<OutputSurface> output_surface_;
std::unique_ptr<SharedBitmapManager> shared_bitmap_manager_;
std::unique_ptr<ResourceProvider> resource_provider_;
std::unique_ptr<SurfaceAggregator> aggregator_;

Powered by Google App Engine
This is Rietveld 408576698