| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "cc/layers/content_layer.h" | 8 #include "cc/layers/content_layer.h" |
| 9 #include "cc/layers/delegated_frame_provider.h" | 9 #include "cc/layers/delegated_frame_provider.h" |
| 10 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) { | 841 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) { |
| 842 context_should_support_io_surface_ = true; | 842 context_should_support_io_surface_ = true; |
| 843 | 843 |
| 844 child_output_surface_ = FakeOutputSurface::Create3d(); | 844 child_output_surface_ = FakeOutputSurface::Create3d(); |
| 845 child_output_surface_->BindToClient(&output_surface_client_); | 845 child_output_surface_->BindToClient(&output_surface_client_); |
| 846 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); | 846 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); |
| 847 child_resource_provider_ = | 847 child_resource_provider_ = |
| 848 ResourceProvider::Create(child_output_surface_.get(), | 848 ResourceProvider::Create(child_output_surface_.get(), |
| 849 shared_bitmap_manager_.get(), | 849 shared_bitmap_manager_.get(), |
| 850 NULL, | 850 NULL, |
| 851 NULL, |
| 851 0, | 852 0, |
| 852 false, | 853 false, |
| 853 1, | 854 1, |
| 854 false); | 855 false); |
| 855 } | 856 } |
| 856 | 857 |
| 857 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {} | 858 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {} |
| 858 | 859 |
| 859 virtual void SetupTree() override { | 860 virtual void SetupTree() override { |
| 860 gpu::gles2::GLES2Interface* gl = | 861 gpu::gles2::GLES2Interface* gl = |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 virtual void AfterTest() override {} | 1707 virtual void AfterTest() override {} |
| 1707 | 1708 |
| 1708 bool deferred_; | 1709 bool deferred_; |
| 1709 }; | 1710 }; |
| 1710 | 1711 |
| 1711 SINGLE_AND_MULTI_THREAD_TEST_F( | 1712 SINGLE_AND_MULTI_THREAD_TEST_F( |
| 1712 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); | 1713 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); |
| 1713 | 1714 |
| 1714 } // namespace | 1715 } // namespace |
| 1715 } // namespace cc | 1716 } // namespace cc |
| OLD | NEW |