| 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 <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 5659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5670 void InitializeSettings(LayerTreeSettings* settings) override { | 5670 void InitializeSettings(LayerTreeSettings* settings) override { |
| 5671 settings->use_one_copy = true; | 5671 settings->use_one_copy = true; |
| 5672 } | 5672 } |
| 5673 | 5673 |
| 5674 scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface( | 5674 scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface( |
| 5675 bool fallback) override { | 5675 bool fallback) override { |
| 5676 scoped_ptr<TestWebGraphicsContext3D> context3d = | 5676 scoped_ptr<TestWebGraphicsContext3D> context3d = |
| 5677 TestWebGraphicsContext3D::Create(); | 5677 TestWebGraphicsContext3D::Create(); |
| 5678 context3d->set_support_image(true); | 5678 context3d->set_support_image(true); |
| 5679 context3d->set_support_sync_query(true); | 5679 context3d->set_support_sync_query(true); |
| 5680 #if defined(OS_MACOSX) |
| 5681 context3d->set_support_texture_rectangle(true); |
| 5682 #endif |
| 5680 | 5683 |
| 5681 if (delegating_renderer()) | 5684 if (delegating_renderer()) |
| 5682 return FakeOutputSurface::CreateDelegating3d(context3d.Pass()); | 5685 return FakeOutputSurface::CreateDelegating3d(context3d.Pass()); |
| 5683 else | 5686 else |
| 5684 return FakeOutputSurface::Create3d(context3d.Pass()); | 5687 return FakeOutputSurface::Create3d(context3d.Pass()); |
| 5685 } | 5688 } |
| 5686 }; | 5689 }; |
| 5687 | 5690 |
| 5688 MULTI_THREAD_IMPL_TEST_F(LayerTreeHostTestCrispUpAfterPinchEndsWithOneCopy); | 5691 MULTI_THREAD_IMPL_TEST_F(LayerTreeHostTestCrispUpAfterPinchEndsWithOneCopy); |
| 5689 | 5692 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5858 | 5861 |
| 5859 FakeContentLayerClient client_; | 5862 FakeContentLayerClient client_; |
| 5860 int step_; | 5863 int step_; |
| 5861 int continuous_draws_; | 5864 int continuous_draws_; |
| 5862 base::WaitableEvent playback_allowed_event_; | 5865 base::WaitableEvent playback_allowed_event_; |
| 5863 }; | 5866 }; |
| 5864 | 5867 |
| 5865 MULTI_THREAD_TEST_F(LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles); | 5868 MULTI_THREAD_TEST_F(LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles); |
| 5866 | 5869 |
| 5867 } // namespace cc | 5870 } // namespace cc |
| OLD | NEW |