| 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 "cc/debug/test_web_graphics_context_3d.h" | 10 #include "cc/debug/test_web_graphics_context_3d.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public RasterWorkerPoolClient { | 60 public RasterWorkerPoolClient { |
| 61 public: | 61 public: |
| 62 RasterWorkerPoolTest() | 62 RasterWorkerPoolTest() |
| 63 : context_provider_(TestContextProvider::Create()), | 63 : context_provider_(TestContextProvider::Create()), |
| 64 check_interval_milliseconds_(1), | 64 check_interval_milliseconds_(1), |
| 65 timeout_seconds_(5), | 65 timeout_seconds_(5), |
| 66 timed_out_(false) { | 66 timed_out_(false) { |
| 67 output_surface_ = FakeOutputSurface::Create3d(context_provider_).Pass(); | 67 output_surface_ = FakeOutputSurface::Create3d(context_provider_).Pass(); |
| 68 CHECK(output_surface_->BindToClient(&output_surface_client_)); | 68 CHECK(output_surface_->BindToClient(&output_surface_client_)); |
| 69 | 69 |
| 70 resource_provider_ = | 70 resource_provider_ = ResourceProvider::Create( |
| 71 ResourceProvider::Create(output_surface_.get(), NULL, 0, false).Pass(); | 71 output_surface_.get(), NULL, 0, false, 1).Pass(); |
| 72 } | 72 } |
| 73 virtual ~RasterWorkerPoolTest() { | 73 virtual ~RasterWorkerPoolTest() { |
| 74 resource_provider_.reset(); | 74 resource_provider_.reset(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 // Overridden from testing::Test: | 77 // Overridden from testing::Test: |
| 78 virtual void TearDown() OVERRIDE { | 78 virtual void TearDown() OVERRIDE { |
| 79 if (!raster_worker_pool_) | 79 if (!raster_worker_pool_) |
| 80 return; | 80 return; |
| 81 raster_worker_pool_->Shutdown(); | 81 raster_worker_pool_->Shutdown(); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 ASSERT_EQ(1u, tasks_.size()); | 283 ASSERT_EQ(1u, tasks_.size()); |
| 284 tasks_.clear(); | 284 tasks_.clear(); |
| 285 } | 285 } |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource); | 288 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource); |
| 289 | 289 |
| 290 } // namespace | 290 } // namespace |
| 291 | 291 |
| 292 } // namespace cc | 292 } // namespace cc |
| OLD | NEW |