Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: cc/resources/raster_worker_pool_unittest.cc

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 TestRasterTaskImpl(const Resource* resource, 52 TestRasterTaskImpl(const Resource* resource,
53 const Reply& reply, 53 const Reply& reply,
54 ImageDecodeTask::Vector* dependencies) 54 ImageDecodeTask::Vector* dependencies)
55 : RasterTask(resource, dependencies), 55 : RasterTask(resource, dependencies),
56 reply_(reply), 56 reply_(reply),
57 picture_pile_(FakePicturePileImpl::CreateEmptyPile(gfx::Size(1, 1), 57 picture_pile_(FakePicturePileImpl::CreateEmptyPile(gfx::Size(1, 1),
58 gfx::Size(1, 1))) {} 58 gfx::Size(1, 1))) {}
59 59
60 // Overridden from Task: 60 // Overridden from Task:
61 void RunOnWorkerThread() override { 61 void RunOnWorkerThread() override {
62 raster_buffer_->Playback( 62 raster_buffer_->Playback(picture_pile_.get(), gfx::Rect(0, 0, 1, 1), 1.0);
63 picture_pile_.get(), gfx::Rect(0, 0, 1, 1), 1.0, NULL);
64 } 63 }
65 64
66 // Overridden from RasterizerTask: 65 // Overridden from RasterizerTask:
67 void ScheduleOnOriginThread(RasterizerTaskClient* client) override { 66 void ScheduleOnOriginThread(RasterizerTaskClient* client) override {
68 raster_buffer_ = client->AcquireBufferForRaster(resource()); 67 raster_buffer_ = client->AcquireBufferForRaster(resource());
69 } 68 }
70 void CompleteOnOriginThread(RasterizerTaskClient* client) override { 69 void CompleteOnOriginThread(RasterizerTaskClient* client) override {
71 client->ReleaseBufferForRaster(raster_buffer_.Pass()); 70 client->ReleaseBufferForRaster(raster_buffer_.Pass());
72 } 71 }
73 void RunReplyOnOriginThread() override { 72 void RunReplyOnOriginThread() override {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, 401 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests,
403 RasterWorkerPoolTest, 402 RasterWorkerPoolTest,
404 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, 403 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER,
405 RASTER_WORKER_POOL_TYPE_ZERO_COPY, 404 RASTER_WORKER_POOL_TYPE_ZERO_COPY,
406 RASTER_WORKER_POOL_TYPE_ONE_COPY, 405 RASTER_WORKER_POOL_TYPE_ONE_COPY,
407 RASTER_WORKER_POOL_TYPE_GPU, 406 RASTER_WORKER_POOL_TYPE_GPU,
408 RASTER_WORKER_POOL_TYPE_BITMAP)); 407 RASTER_WORKER_POOL_TYPE_BITMAP));
409 408
410 } // namespace 409 } // namespace
411 } // namespace cc 410 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698