| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/test/test_simple_task_runner.h" | 10 #include "base/test/test_simple_task_runner.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Copy the data over after setting the data to ensure alignment. | 75 // Copy the data over after setting the data to ensure alignment. |
| 76 gpu::SyncToken sync_token_data(gpu::CommandBufferNamespace::GPU_IO, 0, | 76 gpu::SyncToken sync_token_data(gpu::CommandBufferNamespace::GPU_IO, 0, |
| 77 gpu::CommandBufferId(), fence_sync); | 77 gpu::CommandBufferId(), fence_sync); |
| 78 memcpy(sync_token, &sync_token_data, sizeof(sync_token_data)); | 78 memcpy(sync_token, &sync_token_data, sizeof(sync_token_data)); |
| 79 } | 79 } |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 class PerfContextProvider : public ContextProvider { | 82 class PerfContextProvider : public ContextProvider { |
| 83 public: | 83 public: |
| 84 PerfContextProvider() | 84 PerfContextProvider() |
| 85 : context_gl_(new PerfGLES2Interface), cache_controller_(&support_) {} | 85 : context_gl_(new PerfGLES2Interface), |
| 86 cache_controller_(&support_, nullptr) {} |
| 86 | 87 |
| 87 bool BindToCurrentThread() override { return true; } | 88 bool BindToCurrentThread() override { return true; } |
| 88 gpu::Capabilities ContextCapabilities() override { | 89 gpu::Capabilities ContextCapabilities() override { |
| 89 gpu::Capabilities capabilities; | 90 gpu::Capabilities capabilities; |
| 90 capabilities.image = true; | 91 capabilities.image = true; |
| 91 capabilities.sync_query = true; | 92 capabilities.sync_query = true; |
| 92 return capabilities; | 93 return capabilities; |
| 93 } | 94 } |
| 94 gpu::gles2::GLES2Interface* ContextGL() override { return context_gl_.get(); } | 95 gpu::gles2::GLES2Interface* ContextGL() override { return context_gl_.get(); } |
| 95 gpu::ContextSupport* ContextSupport() override { return &support_; } | 96 gpu::ContextSupport* ContextSupport() override { return &support_; } |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 RunBuildTileTaskGraphTest("1_0", 1, 0); | 600 RunBuildTileTaskGraphTest("1_0", 1, 0); |
| 600 RunBuildTileTaskGraphTest("32_0", 32, 0); | 601 RunBuildTileTaskGraphTest("32_0", 32, 0); |
| 601 RunBuildTileTaskGraphTest("1_1", 1, 1); | 602 RunBuildTileTaskGraphTest("1_1", 1, 1); |
| 602 RunBuildTileTaskGraphTest("32_1", 32, 1); | 603 RunBuildTileTaskGraphTest("32_1", 32, 1); |
| 603 RunBuildTileTaskGraphTest("1_4", 1, 4); | 604 RunBuildTileTaskGraphTest("1_4", 1, 4); |
| 604 RunBuildTileTaskGraphTest("32_4", 32, 4); | 605 RunBuildTileTaskGraphTest("32_4", 32, 4); |
| 605 } | 606 } |
| 606 | 607 |
| 607 } // namespace | 608 } // namespace |
| 608 } // namespace cc | 609 } // namespace cc |
| OLD | NEW |