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

Unified Diff: cc/resources/picture_pile_impl.cc

Issue 73923003: Shared Raster Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review changes Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
old mode 100644
new mode 100755
index b6f4d77156f57c8d94ffdd377c948e97674cf37a..714eaad7b3a2182bd8e3eac19a9dbbc438a4be6d
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -7,8 +7,10 @@
#include "base/debug/trace_event.h"
#include "cc/base/region.h"
+#include "cc/base/switches.h"
reveman 2014/01/07 17:24:06 no need to include this here
sohanjg 2014/01/08 05:55:43 Done.
#include "cc/debug/debug_colors.h"
#include "cc/resources/picture_pile_impl.h"
+#include "cc/resources/raster_worker_pool.h"
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkSize.h"
@@ -50,7 +52,8 @@ PicturePileImpl::PicturePileImpl()
PicturePileImpl::PicturePileImpl(const PicturePileBase* other)
: PicturePileBase(other),
- clones_for_drawing_(ClonesForDrawing(this, num_raster_threads())) {
+ clones_for_drawing_(ClonesForDrawing(
+ this, WorkerPool::GetNumRasterThreads())) {
}
PicturePileImpl::PicturePileImpl(

Powered by Google App Engine
This is Rietveld 408576698