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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 2011783002: Rename OwnPtr::clear() to reset() in platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
index f566abe8b0933798527cd28942d434e003a68a5e..30d56946d68c3acfff79a7d54ab776f3f432700d 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -130,7 +130,7 @@ Canvas2DLayerBridge::~Canvas2DLayerBridge()
clearCHROMIUMImageCache();
#endif // USE_IOSURFACE_FOR_2D_CANVAS
- m_layer.clear();
+ m_layer.reset();
ASSERT(m_mailboxes.size() == 0);
}
@@ -543,7 +543,7 @@ void Canvas2DLayerBridge::disableDeferral(DisableDeferralReason reason)
m_haveRecordedDrawCommands = false;
m_isDeferralEnabled = false;
- m_recorder.clear();
+ m_recorder.reset();
// install the current matrix/clip stack onto the immediate canvas
SkSurface* surface = getOrCreateSurface();
if (m_imageBuffer && surface)
@@ -565,7 +565,7 @@ void Canvas2DLayerBridge::beginDestruction()
if (isHibernating())
m_logger->reportHibernationEvent(HibernationEndedWithTeardown);
m_hibernationImage.clear();
- m_recorder.clear();
+ m_recorder.reset();
m_imageBuffer = nullptr;
m_destructionInProgress = true;
setIsHidden(true);

Powered by Google App Engine
This is Rietveld 408576698