Avoid some work on SkClipStack equality when the topmost genids match
Two clip stacks are defined being equal if the topmost genids match. R=bsalomon@google.com Author: kkinnunen@nvidia.com Review URL: https://codereview.chromium.org/115573005 git-svn-id: http://skia.googlecode.com/svn/trunk@12909 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
7627c657b0
commit
86b39f311e
@ -406,6 +406,9 @@ SkClipStack& SkClipStack::operator=(const SkClipStack& b) {
|
||||
}
|
||||
|
||||
bool SkClipStack::operator==(const SkClipStack& b) const {
|
||||
if (this->getTopmostGenID() == b.getTopmostGenID()) {
|
||||
return true;
|
||||
}
|
||||
if (fSaveCount != b.fSaveCount ||
|
||||
fDeque.count() != b.fDeque.count()) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user