| 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/delegated_frame_provider.h" | 5 #include "cc/layers/delegated_frame_provider.h" |
| 6 #include "cc/layers/delegated_frame_resource_collection.h" | 6 #include "cc/layers/delegated_frame_resource_collection.h" |
| 7 #include "cc/layers/delegated_renderer_layer.h" | 7 #include "cc/layers/delegated_renderer_layer.h" |
| 8 #include "cc/output/delegated_frame_data.h" | 8 #include "cc/output/delegated_frame_data.h" |
| 9 #include "cc/quads/texture_draw_quad.h" | 9 #include "cc/quads/texture_draw_quad.h" |
| 10 #include "cc/resources/returned_resource.h" | 10 #include "cc/resources/returned_resource.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 quad->SetNew(sqs, | 52 quad->SetNew(sqs, |
| 53 gfx::Rect(0, 0, 10, 10), | 53 gfx::Rect(0, 0, 10, 10), |
| 54 gfx::Rect(0, 0, 10, 10), | 54 gfx::Rect(0, 0, 10, 10), |
| 55 gfx::Rect(0, 0, 10, 10), | 55 gfx::Rect(0, 0, 10, 10), |
| 56 resource_id, | 56 resource_id, |
| 57 false, | 57 false, |
| 58 gfx::PointF(0.f, 0.f), | 58 gfx::PointF(0.f, 0.f), |
| 59 gfx::PointF(1.f, 1.f), | 59 gfx::PointF(1.f, 1.f), |
| 60 SK_ColorTRANSPARENT, | 60 SK_ColorTRANSPARENT, |
| 61 vertex_opacity, | 61 vertex_opacity, |
| 62 false, |
| 62 false); | 63 false); |
| 63 } | 64 } |
| 64 | 65 |
| 65 virtual void SetUp() override { | 66 virtual void SetUp() override { |
| 66 resource_collection_ = new DelegatedFrameResourceCollection; | 67 resource_collection_ = new DelegatedFrameResourceCollection; |
| 67 resource_collection_->SetClient(this); | 68 resource_collection_->SetClient(this); |
| 68 } | 69 } |
| 69 | 70 |
| 70 virtual void TearDown() override { resource_collection_->SetClient(nullptr); } | 71 virtual void TearDown() override { resource_collection_->SetClient(nullptr); } |
| 71 | 72 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 389 |
| 389 frame_provider_ = nullptr; | 390 frame_provider_ = nullptr; |
| 390 | 391 |
| 391 // Nothing is returned twice. | 392 // Nothing is returned twice. |
| 392 EXPECT_FALSE(ReturnAndResetResourcesAvailable()); | 393 EXPECT_FALSE(ReturnAndResetResourcesAvailable()); |
| 393 EXPECT_EQ(0u, resources_.size()); | 394 EXPECT_EQ(0u, resources_.size()); |
| 394 } | 395 } |
| 395 | 396 |
| 396 } // namespace | 397 } // namespace |
| 397 } // namespace cc | 398 } // namespace cc |
| OLD | NEW |