| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/raster/tile_task_worker_pool.h" | 5 #include "cc/raster/tile_task_worker_pool.h" |
| 6 | 6 |
| 7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "cc/debug/lap_timer.h" | 9 #include "cc/debug/lap_timer.h" |
| 10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 gr_context_.get()->resetContext(state); | 95 gr_context_.get()->resetContext(state); |
| 96 } | 96 } |
| 97 void SetupLock() override {} | 97 void SetupLock() override {} |
| 98 base::Lock* GetLock() override { return &context_lock_; } | 98 base::Lock* GetLock() override { return &context_lock_; } |
| 99 void VerifyContexts() override {} | 99 void VerifyContexts() override {} |
| 100 void DeleteCachedResources() override {} | 100 void DeleteCachedResources() override {} |
| 101 bool DestroyedOnMainThread() override { return false; } | 101 bool DestroyedOnMainThread() override { return false; } |
| 102 void SetLostContextCallback(const LostContextCallback& cb) override {} | 102 void SetLostContextCallback(const LostContextCallback& cb) override {} |
| 103 void SetMemoryPolicyChangedCallback( | 103 void SetMemoryPolicyChangedCallback( |
| 104 const MemoryPolicyChangedCallback& cb) override {} | 104 const MemoryPolicyChangedCallback& cb) override {} |
| 105 bool HasBeenDestroyed() override { return false; } |
| 105 | 106 |
| 106 private: | 107 private: |
| 107 ~PerfContextProvider() override {} | 108 ~PerfContextProvider() override {} |
| 108 | 109 |
| 109 scoped_ptr<PerfGLES2Interface> context_gl_; | 110 scoped_ptr<PerfGLES2Interface> context_gl_; |
| 110 skia::RefPtr<class GrContext> gr_context_; | 111 skia::RefPtr<class GrContext> gr_context_; |
| 111 TestContextSupport support_; | 112 TestContextSupport support_; |
| 112 base::Lock context_lock_; | 113 base::Lock context_lock_; |
| 113 }; | 114 }; |
| 114 | 115 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 RunBuildTileTaskQueueTest("1_0", 1, 0); | 492 RunBuildTileTaskQueueTest("1_0", 1, 0); |
| 492 RunBuildTileTaskQueueTest("32_0", 32, 0); | 493 RunBuildTileTaskQueueTest("32_0", 32, 0); |
| 493 RunBuildTileTaskQueueTest("1_1", 1, 1); | 494 RunBuildTileTaskQueueTest("1_1", 1, 1); |
| 494 RunBuildTileTaskQueueTest("32_1", 32, 1); | 495 RunBuildTileTaskQueueTest("32_1", 32, 1); |
| 495 RunBuildTileTaskQueueTest("1_4", 1, 4); | 496 RunBuildTileTaskQueueTest("1_4", 1, 4); |
| 496 RunBuildTileTaskQueueTest("32_4", 32, 4); | 497 RunBuildTileTaskQueueTest("32_4", 32, 4); |
| 497 } | 498 } |
| 498 | 499 |
| 499 } // namespace | 500 } // namespace |
| 500 } // namespace cc | 501 } // namespace cc |
| OLD | NEW |