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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return gr_context_.get(); | 91 return gr_context_.get(); |
92 } | 92 } |
93 void InvalidateGrContext(uint32_t state) override { | 93 void InvalidateGrContext(uint32_t state) override { |
94 if (gr_context_) | 94 if (gr_context_) |
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 DeleteCachedResources() override {} | 99 void DeleteCachedResources() override {} |
100 void SetLostContextCallback(const LostContextCallback& cb) override {} | 100 void SetLostContextCallback(const LostContextCallback& cb) override {} |
| 101 void SetMemoryPolicyChangedCallback( |
| 102 const MemoryPolicyChangedCallback& cb) override {} |
101 | 103 |
102 private: | 104 private: |
103 ~PerfContextProvider() override {} | 105 ~PerfContextProvider() override {} |
104 | 106 |
105 scoped_ptr<PerfGLES2Interface> context_gl_; | 107 scoped_ptr<PerfGLES2Interface> context_gl_; |
106 skia::RefPtr<class GrContext> gr_context_; | 108 skia::RefPtr<class GrContext> gr_context_; |
107 TestContextSupport support_; | 109 TestContextSupport support_; |
108 base::Lock context_lock_; | 110 base::Lock context_lock_; |
109 }; | 111 }; |
110 | 112 |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 RunBuildTileTaskQueueTest("1_0", 1, 0); | 489 RunBuildTileTaskQueueTest("1_0", 1, 0); |
488 RunBuildTileTaskQueueTest("32_0", 32, 0); | 490 RunBuildTileTaskQueueTest("32_0", 32, 0); |
489 RunBuildTileTaskQueueTest("1_1", 1, 1); | 491 RunBuildTileTaskQueueTest("1_1", 1, 1); |
490 RunBuildTileTaskQueueTest("32_1", 32, 1); | 492 RunBuildTileTaskQueueTest("32_1", 32, 1); |
491 RunBuildTileTaskQueueTest("1_4", 1, 4); | 493 RunBuildTileTaskQueueTest("1_4", 1, 4); |
492 RunBuildTileTaskQueueTest("32_4", 32, 4); | 494 RunBuildTileTaskQueueTest("32_4", 32, 4); |
493 } | 495 } |
494 | 496 |
495 } // namespace | 497 } // namespace |
496 } // namespace cc | 498 } // namespace cc |
OLD | NEW |