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/base/scoped_ptr_vector.h" | 5 #include "cc/base/scoped_ptr_vector.h" |
6 #include "cc/output/gl_renderer.h" | 6 #include "cc/output/gl_renderer.h" |
7 #include "cc/output/output_surface.h" | 7 #include "cc/output/output_surface.h" |
8 #include "cc/output/output_surface_client.h" | 8 #include "cc/output/output_surface_client.h" |
9 #include "cc/output/overlay_candidate_validator.h" | 9 #include "cc/output/overlay_candidate_validator.h" |
10 #include "cc/output/overlay_processor.h" | 10 #include "cc/output/overlay_processor.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 484 } |
485 | 485 |
486 private: | 486 private: |
487 bool expect_overlays_; | 487 bool expect_overlays_; |
488 }; | 488 }; |
489 | 489 |
490 class FakeRendererClient : public RendererClient { | 490 class FakeRendererClient : public RendererClient { |
491 public: | 491 public: |
492 // RendererClient methods. | 492 // RendererClient methods. |
493 virtual void SetFullRootLayerDamage() OVERRIDE {} | 493 virtual void SetFullRootLayerDamage() OVERRIDE {} |
| 494 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE {} |
494 }; | 495 }; |
495 | 496 |
496 class MockOverlayScheduler { | 497 class MockOverlayScheduler { |
497 public: | 498 public: |
498 MOCK_METHOD5(Schedule, | 499 MOCK_METHOD5(Schedule, |
499 void(int plane_z_order, | 500 void(int plane_z_order, |
500 gfx::OverlayTransform plane_transform, | 501 gfx::OverlayTransform plane_transform, |
501 unsigned overlay_texture_id, | 502 unsigned overlay_texture_id, |
502 const gfx::Rect& display_bounds, | 503 const gfx::Rect& display_bounds, |
503 const gfx::RectF& uv_rect)); | 504 const gfx::RectF& uv_rect)); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 renderer_->set_expect_overlays(false); | 718 renderer_->set_expect_overlays(false); |
718 renderer_->FinishDrawingFrame(&frame3); | 719 renderer_->FinishDrawingFrame(&frame3); |
719 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); | 720 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); |
720 SwapBuffers(); | 721 SwapBuffers(); |
721 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); | 722 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); |
722 Mock::VerifyAndClearExpectations(&scheduler_); | 723 Mock::VerifyAndClearExpectations(&scheduler_); |
723 } | 724 } |
724 | 725 |
725 } // namespace | 726 } // namespace |
726 } // namespace cc | 727 } // namespace cc |
OLD | NEW |