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 <stddef.h> |
| 6 |
5 #include <utility> | 7 #include <utility> |
6 | 8 |
7 #include "cc/base/region.h" | 9 #include "cc/base/region.h" |
8 #include "cc/output/compositor_frame_metadata.h" | 10 #include "cc/output/compositor_frame_metadata.h" |
9 #include "cc/output/gl_renderer.h" | 11 #include "cc/output/gl_renderer.h" |
10 #include "cc/output/output_surface.h" | 12 #include "cc/output/output_surface.h" |
11 #include "cc/output/output_surface_client.h" | 13 #include "cc/output/output_surface_client.h" |
12 #include "cc/output/overlay_candidate_validator.h" | 14 #include "cc/output/overlay_candidate_validator.h" |
13 #include "cc/output/overlay_processor.h" | 15 #include "cc/output/overlay_processor.h" |
14 #include "cc/output/overlay_strategy_sandwich.h" | 16 #include "cc/output/overlay_strategy_sandwich.h" |
(...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2143 renderer_->BeginDrawingFrame(&frame_no_overlays); | 2145 renderer_->BeginDrawingFrame(&frame_no_overlays); |
2144 renderer_->FinishDrawingFrame(&frame_no_overlays); | 2146 renderer_->FinishDrawingFrame(&frame_no_overlays); |
2145 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); | 2147 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); |
2146 SwapBuffers(); | 2148 SwapBuffers(); |
2147 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); | 2149 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); |
2148 Mock::VerifyAndClearExpectations(&scheduler_); | 2150 Mock::VerifyAndClearExpectations(&scheduler_); |
2149 } | 2151 } |
2150 | 2152 |
2151 } // namespace | 2153 } // namespace |
2152 } // namespace cc | 2154 } // namespace cc |
OLD | NEW |