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

Unified Diff: cc/resources/skpicture_content_layer_updater.cc

Issue 638353002: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr in src/… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formating. Created 6 years, 2 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/skpicture_content_layer_updater.cc
diff --git a/cc/resources/skpicture_content_layer_updater.cc b/cc/resources/skpicture_content_layer_updater.cc
index bd524f235f1cd53a6b947236dead75c17412592f..6ef86d123720218734f598d3c1d96baadd77f452 100644
--- a/cc/resources/skpicture_content_layer_updater.cc
+++ b/cc/resources/skpicture_content_layer_updater.cc
@@ -29,8 +29,8 @@ void SkPictureContentLayerUpdater::PrepareToUpdate(
float contents_width_scale,
float contents_height_scale) {
SkPictureRecorder recorder;
- SkCanvas* canvas =
- recorder.beginRecording(paint_rect.width(), paint_rect.height(), NULL, 0);
+ SkCanvas* canvas = recorder.beginRecording(
+ paint_rect.width(), paint_rect.height(), nullptr, 0);
DCHECK_EQ(paint_rect.width(), canvas->getBaseLayerSize().width());
DCHECK_EQ(paint_rect.height(), canvas->getBaseLayerSize().height());
base::TimeTicks start_time =

Powered by Google App Engine
This is Rietveld 408576698