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

Side by Side Diff: third_party/WebKit/Source/platform/testing/RuntimeEnabledFeaturesTestHelpers.h

Issue 2434443005: Only automatically promote scrollers which are untransformed and opaque. (Closed)
Patch Set: Force compositing to test scrolling contents background painting Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RuntimeEnabledFeaturesTestHelpers_h 5 #ifndef RuntimeEnabledFeaturesTestHelpers_h
6 #define RuntimeEnabledFeaturesTestHelpers_h 6 #define RuntimeEnabledFeaturesTestHelpers_h
7 7
8 #include "platform/RuntimeEnabledFeatures.h" 8 #include "platform/RuntimeEnabledFeatures.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 10
(...skipping 15 matching lines...) Expand all
26 private: 26 private:
27 bool m_enabled; 27 bool m_enabled;
28 bool m_original; 28 bool m_original;
29 }; 29 };
30 30
31 typedef ScopedRuntimeEnabledFeatureForTest< 31 typedef ScopedRuntimeEnabledFeatureForTest<
32 RuntimeEnabledFeatures::compositeOpaqueFixedPositionEnabled, 32 RuntimeEnabledFeatures::compositeOpaqueFixedPositionEnabled,
33 RuntimeEnabledFeatures::setCompositeOpaqueFixedPositionEnabled> 33 RuntimeEnabledFeatures::setCompositeOpaqueFixedPositionEnabled>
34 ScopedCompositeFixedPositionForTest; 34 ScopedCompositeFixedPositionForTest;
35 typedef ScopedRuntimeEnabledFeatureForTest< 35 typedef ScopedRuntimeEnabledFeatureForTest<
36 RuntimeEnabledFeatures::compositeOpaqueScrollersEnabled,
37 RuntimeEnabledFeatures::setCompositeOpaqueScrollersEnabled>
38 ScopedCompositeOpaqueScrollersForTest;
39 typedef ScopedRuntimeEnabledFeatureForTest<
36 RuntimeEnabledFeatures::compositorWorkerEnabled, 40 RuntimeEnabledFeatures::compositorWorkerEnabled,
37 RuntimeEnabledFeatures::setCompositorWorkerEnabled> 41 RuntimeEnabledFeatures::setCompositorWorkerEnabled>
38 ScopedCompositorWorkerForTest; 42 ScopedCompositorWorkerForTest;
39 typedef ScopedRuntimeEnabledFeatureForTest< 43 typedef ScopedRuntimeEnabledFeatureForTest<
40 RuntimeEnabledFeatures::rootLayerScrollingEnabled, 44 RuntimeEnabledFeatures::rootLayerScrollingEnabled,
41 RuntimeEnabledFeatures::setRootLayerScrollingEnabled> 45 RuntimeEnabledFeatures::setRootLayerScrollingEnabled>
42 ScopedRootLayerScrollingForTest; 46 ScopedRootLayerScrollingForTest;
43 typedef ScopedRuntimeEnabledFeatureForTest< 47 typedef ScopedRuntimeEnabledFeatureForTest<
44 RuntimeEnabledFeatures::slimmingPaintV2Enabled, 48 RuntimeEnabledFeatures::slimmingPaintV2Enabled,
45 RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> 49 RuntimeEnabledFeatures::setSlimmingPaintV2Enabled>
46 ScopedSlimmingPaintV2ForTest; 50 ScopedSlimmingPaintV2ForTest;
47 51
48 } // namespace blink 52 } // namespace blink
49 53
50 #endif // RuntimeEnabledFeaturesTestHelpers_h 54 #endif // RuntimeEnabledFeaturesTestHelpers_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698