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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 34894c618c6e4145098d1d147276a711d2053728..fad71475e10d2082229bafd35d958a839138e19c 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -136,8 +136,8 @@ void BitmapImage::destroyDecodedDataIfNecessary()
void BitmapImage::notifyMemoryChanged(int delta)
{
- if (delta && imageObserver())
- imageObserver()->decodedSizeChanged(this, delta);
+ if (delta && getImageObserver())
+ getImageObserver()->decodedSizeChanged(this, delta);
}
int BitmapImage::totalFrameBytes()
@@ -300,7 +300,7 @@ void BitmapImage::draw(SkCanvas* canvas, const SkPaint& paint, const FloatRect&
if (currentFrameIsLazyDecoded())
PlatformInstrumentation::didDrawLazyPixelRef(image->uniqueID());
- if (ImageObserver* observer = imageObserver())
+ if (ImageObserver* observer = getImageObserver())
observer->didDraw(this);
startAnimation();
@@ -453,7 +453,7 @@ int BitmapImage::repetitionCount(bool imageKnownToBeComplete)
bool BitmapImage::shouldAnimate()
{
- bool animated = repetitionCount(false) != cAnimationNone && !m_animationFinished && imageObserver();
+ bool animated = repetitionCount(false) != cAnimationNone && !m_animationFinished && getImageObserver();
if (animated && m_animationPolicy == ImageAnimationPolicyNoAnimation)
animated = false;
return animated;
@@ -609,7 +609,7 @@ bool BitmapImage::internalAdvanceAnimation(bool skippingFrames)
// See if anyone is still paying attention to this animation. If not, we don't
// advance and will remain suspended at the current frame until the animation is resumed.
- if (!skippingFrames && imageObserver()->shouldPauseAnimation(this))
+ if (!skippingFrames && getImageObserver()->shouldPauseAnimation(this))
return false;
++m_currentFrame;
@@ -636,7 +636,7 @@ bool BitmapImage::internalAdvanceAnimation(bool skippingFrames)
// We need to draw this frame if we advanced to it while not skipping, or if
// while trying to skip frames we hit the last frame and thus had to stop.
if (skippingFrames != advancedAnimation)
- imageObserver()->animationAdvanced(this);
+ getImageObserver()->animationAdvanced(this);
return advancedAnimation;
}

Powered by Google App Engine
This is Rietveld 408576698