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

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: WIP - realigning code to get number of raster threads + nits Created 7 years 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..213af04492af6f8cb606c0789c0b0ec4ed576de9
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -7,6 +7,7 @@
#include "base/debug/trace_event.h"
#include "cc/base/region.h"
+#include "cc/base/switches.h"
#include "cc/debug/debug_colors.h"
#include "cc/resources/picture_pile_impl.h"
#include "skia/ext/analysis_canvas.h"
@@ -50,7 +51,8 @@ PicturePileImpl::PicturePileImpl()
PicturePileImpl::PicturePileImpl(const PicturePileBase* other)
: PicturePileBase(other),
- clones_for_drawing_(ClonesForDrawing(this, num_raster_threads())) {
+ clones_for_drawing_(ClonesForDrawing(
+ this, switches::GetNumRasterThreads())) {
reveman 2013/12/28 14:45:48 nit: this line should be indented 4 spaces relativ
sohanjg 2013/12/30 06:49:36 Done.
}
PicturePileImpl::PicturePileImpl(

Powered by Google App Engine
This is Rietveld 408576698