From b265741cc17f897b349caacdb890119e4111a415 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Wed, 7 Aug 2013 22:36:29 +0000 Subject: Revert r10603 (Remove operator== from SkPaint) due to Chrome failures git-svn-id: http://skia.googlecode.com/svn/trunk@10632 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/views/animated/SkStaticTextView.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/views/animated') diff --git a/src/views/animated/SkStaticTextView.cpp b/src/views/animated/SkStaticTextView.cpp index bbef63dff3..0e4cad63e5 100644 --- a/src/views/animated/SkStaticTextView.cpp +++ b/src/views/animated/SkStaticTextView.cpp @@ -125,9 +125,12 @@ void SkStaticTextView::getPaint(SkPaint* paint) const void SkStaticTextView::setPaint(const SkPaint& paint) { - fPaint = paint; - this->computeSize(); - this->inval(NULL); + if (fPaint != paint) + { + fPaint = paint; + this->computeSize(); + this->inval(NULL); + } } void SkStaticTextView::onDraw(SkCanvas* canvas) -- cgit v1.2.3