| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 : public testing::TestWithParam<RasterWorkerPoolType>, | 114 : public testing::TestWithParam<RasterWorkerPoolType>, |
| 115 public RasterizerClient { | 115 public RasterizerClient { |
| 116 public: | 116 public: |
| 117 struct RasterTaskResult { | 117 struct RasterTaskResult { |
| 118 unsigned id; | 118 unsigned id; |
| 119 bool canceled; | 119 bool canceled; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 typedef std::vector<scoped_refptr<RasterTask>> RasterTaskVector; | 122 typedef std::vector<scoped_refptr<RasterTask>> RasterTaskVector; |
| 123 | 123 |
| 124 enum NamedTaskSet { REQUIRED_FOR_ACTIVATION = 0, ALL = 1 }; | 124 enum NamedTaskSet { ALL, REQUIRED_FOR_ACTIVATION, REQUIRED_FOR_DRAW }; |
| 125 | 125 |
| 126 RasterWorkerPoolTest() | 126 RasterWorkerPoolTest() |
| 127 : context_provider_(TestContextProvider::Create()), | 127 : context_provider_(TestContextProvider::Create()), |
| 128 timeout_seconds_(5), | 128 timeout_seconds_(5), |
| 129 timed_out_(false) {} | 129 timed_out_(false) {} |
| 130 | 130 |
| 131 // Overridden from testing::Test: | 131 // Overridden from testing::Test: |
| 132 virtual void SetUp() override { | 132 virtual void SetUp() override { |
| 133 switch (GetParam()) { | 133 switch (GetParam()) { |
| 134 case RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER: | 134 case RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER: |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, | 401 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, |
| 402 RasterWorkerPoolTest, | 402 RasterWorkerPoolTest, |
| 403 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, | 403 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, |
| 404 RASTER_WORKER_POOL_TYPE_ZERO_COPY, | 404 RASTER_WORKER_POOL_TYPE_ZERO_COPY, |
| 405 RASTER_WORKER_POOL_TYPE_ONE_COPY, | 405 RASTER_WORKER_POOL_TYPE_ONE_COPY, |
| 406 RASTER_WORKER_POOL_TYPE_GPU, | 406 RASTER_WORKER_POOL_TYPE_GPU, |
| 407 RASTER_WORKER_POOL_TYPE_BITMAP)); | 407 RASTER_WORKER_POOL_TYPE_BITMAP)); |
| 408 | 408 |
| 409 } // namespace | 409 } // namespace |
| 410 } // namespace cc | 410 } // namespace cc |
| OLD | NEW |