| 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/resources/raster_worker_pool.h" | 5 #include "cc/resources/raster_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 class PerfContextProvider : public ContextProvider { | 65 class PerfContextProvider : public ContextProvider { |
| 66 public: | 66 public: |
| 67 PerfContextProvider() : context_gl_(new PerfGLES2Interface) {} | 67 PerfContextProvider() : context_gl_(new PerfGLES2Interface) {} |
| 68 | 68 |
| 69 virtual bool BindToCurrentThread() OVERRIDE { return true; } | 69 virtual bool BindToCurrentThread() OVERRIDE { return true; } |
| 70 virtual Capabilities ContextCapabilities() OVERRIDE { | 70 virtual Capabilities ContextCapabilities() OVERRIDE { |
| 71 Capabilities capabilities; | 71 Capabilities capabilities; |
| 72 capabilities.gpu.map_image = true; | 72 capabilities.gpu.image = true; |
| 73 capabilities.gpu.sync_query = true; | 73 capabilities.gpu.sync_query = true; |
| 74 return capabilities; | 74 return capabilities; |
| 75 } | 75 } |
| 76 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { | 76 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { |
| 77 return context_gl_.get(); | 77 return context_gl_.get(); |
| 78 } | 78 } |
| 79 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { return &support_; } | 79 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { return &support_; } |
| 80 virtual class GrContext* GrContext() OVERRIDE { return NULL; } | 80 virtual class GrContext* GrContext() OVERRIDE { return NULL; } |
| 81 virtual bool IsContextLost() OVERRIDE { return false; } | 81 virtual bool IsContextLost() OVERRIDE { return false; } |
| 82 virtual void VerifyContexts() OVERRIDE {} | 82 virtual void VerifyContexts() OVERRIDE {} |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 RunBuildRasterTaskQueueTest("1_0", 1, 0); | 517 RunBuildRasterTaskQueueTest("1_0", 1, 0); |
| 518 RunBuildRasterTaskQueueTest("32_0", 32, 0); | 518 RunBuildRasterTaskQueueTest("32_0", 32, 0); |
| 519 RunBuildRasterTaskQueueTest("1_1", 1, 1); | 519 RunBuildRasterTaskQueueTest("1_1", 1, 1); |
| 520 RunBuildRasterTaskQueueTest("32_1", 32, 1); | 520 RunBuildRasterTaskQueueTest("32_1", 32, 1); |
| 521 RunBuildRasterTaskQueueTest("1_4", 1, 4); | 521 RunBuildRasterTaskQueueTest("1_4", 1, 4); |
| 522 RunBuildRasterTaskQueueTest("32_4", 32, 4); | 522 RunBuildRasterTaskQueueTest("32_4", 32, 4); |
| 523 } | 523 } |
| 524 | 524 |
| 525 } // namespace | 525 } // namespace |
| 526 } // namespace cc | 526 } // namespace cc |
| OLD | NEW |