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

Side by Side Diff: third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 EXPECT_FALSE(animation1->hasActiveAnimationsOnCompositor()); 1219 EXPECT_FALSE(animation1->hasActiveAnimationsOnCompositor());
1220 EXPECT_FALSE(animation2->hasActiveAnimationsOnCompositor()); 1220 EXPECT_FALSE(animation2->hasActiveAnimationsOnCompositor());
1221 1221
1222 simulateFrame(0); 1222 simulateFrame(0);
1223 EXPECT_EQ(2U, element->elementAnimations()->animations().size()); 1223 EXPECT_EQ(2U, element->elementAnimations()->animations().size());
1224 simulateFrame(1.); 1224 simulateFrame(1.);
1225 1225
1226 element->setLayoutObject(nullptr); 1226 element->setLayoutObject(nullptr);
1227 LayoutObjectProxy::dispose(layoutObject); 1227 LayoutObjectProxy::dispose(layoutObject);
1228 1228
1229 Heap::collectAllGarbage(); 1229 ThreadHeap::collectAllGarbage();
1230 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); 1230 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty());
1231 } 1231 }
1232 1232
1233 } // namespace blink 1233 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698