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

Unified Diff: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp

Issue 2578343002: Support compositing for active animations in SPv2. (Closed)
Patch Set: setNeedsPaintPropertyUpdate on PaintLayer::styleDidChange. Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
index d1dcaee0f53be12e902761f780ab4ce1d66e3a08..0968fb6a6eecc60b74b59ee7cbe464f4674ed186 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -41,6 +41,7 @@
#include "platform/graphics/paint/CullRect.h"
#include "platform/graphics/paint/ForeignLayerDisplayItem.h"
#include "platform/graphics/paint/PaintController.h"
+#include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
#include "platform/testing/URLTestHelpers.h"
#include "platform/testing/UnitTestHelpers.h"
#include "public/platform/Platform.h"
@@ -700,19 +701,10 @@ class CompositedPlugin : public FakeWebPlugin {
std::unique_ptr<WebLayer> m_layer;
};
-class ScopedSPv2 {
- public:
- ScopedSPv2() { RuntimeEnabledFeatures::setSlimmingPaintV2Enabled(true); }
- ~ScopedSPv2() { m_featuresBackup.restore(); }
-
- private:
- RuntimeEnabledFeatures::Backup m_featuresBackup;
-};
-
} // namespace
TEST_F(WebPluginContainerTest, CompositedPluginSPv2) {
- ScopedSPv2 enableSPv2;
+ ScopedSlimmingPaintV2ForTest enableSPv2(true);
URLTestHelpers::registerMockedURLFromBaseURL(
WebString::fromUTF8(m_baseURL.c_str()),
WebString::fromUTF8("plugin.html"));
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698