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

Unified Diff: cc/layers/picture_layer.cc

Issue 643583003: [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: foramted. 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/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 68d24bac812427a2c71412012c934ba6127a146f..befef49a7e0047c340973385aef1964cec94b665 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -184,7 +184,7 @@ skia::RefPtr<SkPicture> PictureLayer::GetPicture() const {
int height = bounds().height();
SkPictureRecorder recorder;
- SkCanvas* canvas = recorder.beginRecording(width, height, NULL, 0);
+ SkCanvas* canvas = recorder.beginRecording(width, height, nullptr, 0);
client_->PaintContents(canvas,
gfx::Rect(width, height),
ContentLayerClient::GRAPHICS_CONTEXT_ENABLED);
@@ -197,7 +197,7 @@ bool PictureLayer::IsSuitableForGpuRasterization() const {
}
void PictureLayer::ClearClient() {
- client_ = NULL;
+ client_ = nullptr;
UpdateDrawsContent(HasDrawableContent());
}

Powered by Google App Engine
This is Rietveld 408576698