OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 5989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6000 std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( | 6000 std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
6001 scoped_refptr<ContextProvider> compositor_context_provider) override { | 6001 scoped_refptr<ContextProvider> compositor_context_provider) override { |
6002 scoped_refptr<TestContextProvider> display_context_provider = | 6002 scoped_refptr<TestContextProvider> display_context_provider = |
6003 TestContextProvider::Create(); | 6003 TestContextProvider::Create(); |
6004 TestWebGraphicsContext3D* context3d = | 6004 TestWebGraphicsContext3D* context3d = |
6005 display_context_provider->UnboundTestContext3d(); | 6005 display_context_provider->UnboundTestContext3d(); |
6006 context3d->set_support_sync_query(true); | 6006 context3d->set_support_sync_query(true); |
6007 #if defined(OS_MACOSX) | 6007 #if defined(OS_MACOSX) |
6008 context3d->set_support_texture_rectangle(true); | 6008 context3d->set_support_texture_rectangle(true); |
6009 #endif | 6009 #endif |
| 6010 display_context_provider->BindToCurrentThread(); |
6010 return LayerTreeTest::CreateDisplayOutputSurfaceOnThread( | 6011 return LayerTreeTest::CreateDisplayOutputSurfaceOnThread( |
6011 std::move(display_context_provider)); | 6012 std::move(display_context_provider)); |
6012 } | 6013 } |
6013 }; | 6014 }; |
6014 | 6015 |
6015 // This test does pinching on the impl side which is not supported in single | 6016 // This test does pinching on the impl side which is not supported in single |
6016 // thread. | 6017 // thread. |
6017 MULTI_THREAD_TEST_F(LayerTreeHostTestCrispUpAfterPinchEndsWithOneCopy); | 6018 MULTI_THREAD_TEST_F(LayerTreeHostTestCrispUpAfterPinchEndsWithOneCopy); |
6018 | 6019 |
6019 class RasterizeWithGpuRasterizationCreatesResources : public LayerTreeHostTest { | 6020 class RasterizeWithGpuRasterizationCreatesResources : public LayerTreeHostTest { |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7035 EndTest(); | 7036 EndTest(); |
7036 } | 7037 } |
7037 | 7038 |
7038 void AfterTest() override {} | 7039 void AfterTest() override {} |
7039 }; | 7040 }; |
7040 | 7041 |
7041 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestSubmitFrameResources); | 7042 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestSubmitFrameResources); |
7042 | 7043 |
7043 } // namespace | 7044 } // namespace |
7044 } // namespace cc | 7045 } // namespace cc |
OLD | NEW |