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

Side by Side Diff: cc/raster/tile_task_worker_pool.cc

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/raster/tile_task_worker_pool.h ('k') | cc/raster/tile_task_worker_pool_perftest.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/tile_task_worker_pool.h" 5 #include "cc/raster/tile_task_worker_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/resources/raster_source.h" 10 #include "cc/playback/raster_source.h"
11 #include "skia/ext/refptr.h" 11 #include "skia/ext/refptr.h"
12 #include "third_party/skia/include/core/SkCanvas.h" 12 #include "third_party/skia/include/core/SkCanvas.h"
13 #include "third_party/skia/include/core/SkSurface.h" 13 #include "third_party/skia/include/core/SkSurface.h"
14 14
15 namespace cc { 15 namespace cc {
16 namespace { 16 namespace {
17 17
18 class TaskSetFinishedTaskImpl : public TileTask { 18 class TaskSetFinishedTaskImpl : public TileTask {
19 public: 19 public:
20 explicit TaskSetFinishedTaskImpl( 20 explicit TaskSetFinishedTaskImpl(
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // TODO(kaanb): The GL pipeline assumes a 4-byte alignment for the 198 // TODO(kaanb): The GL pipeline assumes a 4-byte alignment for the
199 // bitmap data. There will be no need to call SkAlign4 once crbug.com/293728 199 // bitmap data. There will be no need to call SkAlign4 once crbug.com/293728
200 // is fixed. 200 // is fixed.
201 const size_t dst_row_bytes = SkAlign4(dst_info.minRowBytes()); 201 const size_t dst_row_bytes = SkAlign4(dst_info.minRowBytes());
202 DCHECK_EQ(0u, dst_row_bytes % 4); 202 DCHECK_EQ(0u, dst_row_bytes % 4);
203 bool success = canvas->readPixels(dst_info, memory, dst_row_bytes, 0, 0); 203 bool success = canvas->readPixels(dst_info, memory, dst_row_bytes, 0, 0);
204 DCHECK_EQ(true, success); 204 DCHECK_EQ(true, success);
205 } 205 }
206 206
207 } // namespace cc 207 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/tile_task_worker_pool.h ('k') | cc/raster/tile_task_worker_pool_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698