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 bool UseTaskGraphRunnerForOnDemandRaster() OVERRIDE; |
494 }; | 495 }; |
495 | 496 |
| 497 bool FakeRendererClient::UseTaskGraphRunnerForOnDemandRaster() { |
| 498 return true; |
| 499 } |
| 500 |
496 class MockOverlayScheduler { | 501 class MockOverlayScheduler { |
497 public: | 502 public: |
498 MOCK_METHOD5(Schedule, | 503 MOCK_METHOD5(Schedule, |
499 void(int plane_z_order, | 504 void(int plane_z_order, |
500 gfx::OverlayTransform plane_transform, | 505 gfx::OverlayTransform plane_transform, |
501 unsigned overlay_texture_id, | 506 unsigned overlay_texture_id, |
502 const gfx::Rect& display_bounds, | 507 const gfx::Rect& display_bounds, |
503 const gfx::RectF& uv_rect)); | 508 const gfx::RectF& uv_rect)); |
504 }; | 509 }; |
505 | 510 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 renderer_->set_expect_overlays(false); | 722 renderer_->set_expect_overlays(false); |
718 renderer_->FinishDrawingFrame(&frame3); | 723 renderer_->FinishDrawingFrame(&frame3); |
719 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); | 724 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); |
720 SwapBuffers(); | 725 SwapBuffers(); |
721 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); | 726 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); |
722 Mock::VerifyAndClearExpectations(&scheduler_); | 727 Mock::VerifyAndClearExpectations(&scheduler_); |
723 } | 728 } |
724 | 729 |
725 } // namespace | 730 } // namespace |
726 } // namespace cc | 731 } // namespace cc |
OLD | NEW |