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/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 Loading... |
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 |
OLD | NEW |