| 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 <limits> | 7 #include <limits> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 class RasterWorkerPoolTest | 111 class RasterWorkerPoolTest |
| 112 : public testing::TestWithParam<RasterWorkerPoolType>, | 112 : public testing::TestWithParam<RasterWorkerPoolType>, |
| 113 public RasterizerClient { | 113 public RasterizerClient { |
| 114 public: | 114 public: |
| 115 struct RasterTaskResult { | 115 struct RasterTaskResult { |
| 116 unsigned id; | 116 unsigned id; |
| 117 bool canceled; | 117 bool canceled; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 typedef std::vector<scoped_refptr<RasterTask> > RasterTaskVector; | 120 typedef std::vector<scoped_refptr<RasterTask>> RasterTaskVector; |
| 121 | 121 |
| 122 enum NamedTaskSet { REQUIRED_FOR_ACTIVATION = 0, ALL = 1 }; | 122 enum NamedTaskSet { REQUIRED_FOR_ACTIVATION = 0, ALL = 1 }; |
| 123 | 123 |
| 124 RasterWorkerPoolTest() | 124 RasterWorkerPoolTest() |
| 125 : context_provider_(TestContextProvider::Create()), | 125 : context_provider_(TestContextProvider::Create()), |
| 126 timeout_seconds_(5), | 126 timeout_seconds_(5), |
| 127 timed_out_(false) {} | 127 timed_out_(false) {} |
| 128 | 128 |
| 129 // Overridden from testing::Test: | 129 // Overridden from testing::Test: |
| 130 virtual void SetUp() override { | 130 virtual void SetUp() override { |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, | 400 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, |
| 401 RasterWorkerPoolTest, | 401 RasterWorkerPoolTest, |
| 402 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, | 402 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, |
| 403 RASTER_WORKER_POOL_TYPE_ZERO_COPY, | 403 RASTER_WORKER_POOL_TYPE_ZERO_COPY, |
| 404 RASTER_WORKER_POOL_TYPE_ONE_COPY, | 404 RASTER_WORKER_POOL_TYPE_ONE_COPY, |
| 405 RASTER_WORKER_POOL_TYPE_GPU, | 405 RASTER_WORKER_POOL_TYPE_GPU, |
| 406 RASTER_WORKER_POOL_TYPE_BITMAP)); | 406 RASTER_WORKER_POOL_TYPE_BITMAP)); |
| 407 | 407 |
| 408 } // namespace | 408 } // namespace |
| 409 } // namespace cc | 409 } // namespace cc |
| OLD | NEW |