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

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

Issue 597443002: cc: Remove unused kOnDemandRasterTaskPriority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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.h ('k') | no next file » | 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 private: 82 private:
83 scoped_refptr<base::SequencedTaskRunner> task_runner_; 83 scoped_refptr<base::SequencedTaskRunner> task_runner_;
84 const base::Closure on_raster_finished_callback_; 84 const base::Closure on_raster_finished_callback_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(RasterFinishedTaskImpl); 86 DISALLOW_COPY_AND_ASSIGN(RasterFinishedTaskImpl);
87 }; 87 };
88 88
89 } // namespace 89 } // namespace
90 90
91 // This allows an external rasterize on-demand system to run raster tasks
92 // with highest priority using the same task graph runner instance.
93 unsigned RasterWorkerPool::kOnDemandRasterTaskPriority = 0u;
94 // This allows a micro benchmark system to run tasks with highest priority, 91 // This allows a micro benchmark system to run tasks with highest priority,
95 // since it should finish as quickly as possible. 92 // since it should finish as quickly as possible.
96 unsigned RasterWorkerPool::kBenchmarkRasterTaskPriority = 0u; 93 unsigned RasterWorkerPool::kBenchmarkRasterTaskPriority = 0u;
97 // Task priorities that make sure raster finished tasks run before any 94 // Task priorities that make sure raster finished tasks run before any
98 // remaining raster tasks. 95 // remaining raster tasks.
99 unsigned RasterWorkerPool::kRasterFinishedTaskPriority = 1u; 96 unsigned RasterWorkerPool::kRasterFinishedTaskPriority = 1u;
100 unsigned RasterWorkerPool::kRasterTaskPriorityBase = 2u; 97 unsigned RasterWorkerPool::kRasterTaskPriorityBase = 2u;
101 98
102 RasterWorkerPool::RasterWorkerPool() {} 99 RasterWorkerPool::RasterWorkerPool() {}
103 100
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // is fixed. 235 // is fixed.
239 const size_t dst_row_bytes = SkAlign4(dst_info.minRowBytes()); 236 const size_t dst_row_bytes = SkAlign4(dst_info.minRowBytes());
240 DCHECK_EQ(0u, dst_row_bytes % 4); 237 DCHECK_EQ(0u, dst_row_bytes % 4);
241 bool success = bitmap->readPixels(dst_info, buffer, dst_row_bytes, 0, 0); 238 bool success = bitmap->readPixels(dst_info, buffer, dst_row_bytes, 0, 0);
242 DCHECK_EQ(true, success); 239 DCHECK_EQ(true, success);
243 } 240 }
244 bitmap->reset(); 241 bitmap->reset();
245 } 242 }
246 243
247 } // namespace cc 244 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698