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

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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: Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 4235403319b5725dfe7b7a930d4e125103d85d38..1478ff8fcd888762da886c401ba65ab1b2823ffc 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -786,7 +786,7 @@ void DrawingBuffer::paintRenderingResultsToCanvas(ImageBuffer* imageBuffer)
PassRefPtr<Uint8ClampedArray> DrawingBuffer::paintRenderingResultsToImageData(int& width, int& height)
{
if (m_attributes.premultipliedAlpha)
- return 0;
+ return nullptr;
width = size().width();
height = size().height();
@@ -795,7 +795,7 @@ PassRefPtr<Uint8ClampedArray> DrawingBuffer::paintRenderingResultsToImageData(in
dataSize *= width;
dataSize *= height;
if (dataSize.hasOverflowed())
- return 0;
+ return nullptr;
RefPtr<Uint8ClampedArray> pixels = Uint8ClampedArray::createUninitialized(width * height * 4);
« no previous file with comments | « Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp ('k') | Source/platform/mhtml/ArchiveResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698