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

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

Issue 22796028: Updating Chromium to Skia SkBaseDevice/SkBitmapDevice split (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs Created 7 years, 3 months 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/test/skia_common.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 <vector> 7 #include <vector>
8 8
9 #include "cc/debug/test_web_graphics_context_3d.h" 9 #include "cc/debug/test_web_graphics_context_3d.h"
10 #include "cc/resources/image_raster_worker_pool.h" 10 #include "cc/resources/image_raster_worker_pool.h"
(...skipping 16 matching lines...) Expand all
27 27
28 TestRasterWorkerPoolTaskImpl( 28 TestRasterWorkerPoolTaskImpl(
29 const Resource* resource, 29 const Resource* resource,
30 const Reply& reply, 30 const Reply& reply,
31 TaskVector* dependencies) 31 TaskVector* dependencies)
32 : internal::RasterWorkerPoolTask(resource, dependencies), 32 : internal::RasterWorkerPoolTask(resource, dependencies),
33 reply_(reply), 33 reply_(reply),
34 did_raster_(false) {} 34 did_raster_(false) {}
35 35
36 // Overridden from internal::WorkerPoolTask: 36 // Overridden from internal::WorkerPoolTask:
37 virtual bool RunOnWorkerThread(SkDevice* device, unsigned thread_index) 37 virtual bool RunOnWorkerThread(SkBaseDevice* device, unsigned thread_index)
38 OVERRIDE { 38 OVERRIDE {
39 did_raster_ = true; 39 did_raster_ = true;
40 return true; 40 return true;
41 } 41 }
42 virtual void CompleteOnOriginThread() OVERRIDE { 42 virtual void CompleteOnOriginThread() OVERRIDE {
43 reply_.Run(PicturePileImpl::Analysis(), !HasFinishedRunning(), did_raster_); 43 reply_.Run(PicturePileImpl::Analysis(), !HasFinishedRunning(), did_raster_);
44 } 44 }
45 45
46 protected: 46 protected:
47 virtual ~TestRasterWorkerPoolTaskImpl() {} 47 virtual ~TestRasterWorkerPoolTaskImpl() {}
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 ASSERT_EQ(1u, tasks_.size()); 277 ASSERT_EQ(1u, tasks_.size());
278 tasks_.clear(); 278 tasks_.clear();
279 } 279 }
280 }; 280 };
281 281
282 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource); 282 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource);
283 283
284 } // namespace 284 } // namespace
285 285
286 } // namespace cc 286 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698