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

Unified Diff: cc/resources/picture.cc

Issue 595553002: Use the skmultipicture to perform GPU rasterization (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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index adc85de3d53e2610a45a780ca35daf41a05722d4..f790865a7ad910d55e0ffbd5fd822d46ba957b5c 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -350,8 +350,10 @@ int Picture::Raster(SkCanvas* canvas,
canvas->translate(layer_rect_.x(), layer_rect_.y());
if (playback_) {
playback_->draw(canvas);
+ } else if (callback) {
+ picture_->draw(canvas, callback); // AnalysisCanvas
} else {
- picture_->draw(canvas, callback);
+ canvas->drawPicture(picture_.get());
}
reveman 2014/09/22 21:29:05 I assume this is the fix for picture ops being bei
hendrikw 2014/09/22 21:48:39 I'd rather not separate these. I can put more det
reveman 2014/09/22 22:41:08 Ok, a comment here would be useful as it's not obv
robertphillips 2014/09/23 12:54:55 We have renamed SkPicture::draw to be SkPicture::p
reveman 2014/09/23 14:59:46 Ok, that makes sense. We should probably change th
SkIRect bounds;
canvas->getClipDeviceBounds(&bounds);
« cc/resources/gpu_raster_worker_pool.cc ('K') | « cc/resources/gpu_raster_worker_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698