ContentLayer::~ContentLayer() {}
void ContentLayer::ClearClient() {
- client_ = NULL;
+ client_ = nullptr;
UpdateDrawsContent(HasDrawableContent());
}
updater_->set_rendering_stats_instrumentation(
host->rendering_stats_instrumentation());
} else {
- updater_->set_rendering_stats_instrumentation(NULL);
+ updater_->set_rendering_stats_instrumentation(nullptr);
}
}
void ContentLayer::CreateUpdaterIfNeeded() {
if (updater_.get())
return;
- scoped_ptr<LayerPainter> painter =
- ContentLayerPainter::Create(client_).PassAs<LayerPainter>();
+ scoped_ptr<LayerPainter> painter = ContentLayerPainter::Create(client_);
if (layer_tree_host()->settings().per_tile_painting_enabled) {
updater_ = BitmapSkPictureContentLayerUpdater::Create(
painter.Pass(),
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);