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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp

Issue 2881423004: Stop retrieving scrolling element id from the CompositorElementId. (Closed)
Patch Set: Merge branch 'master' into scrollstate Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositorElementId.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/platform/graphics/CompositorElementIdTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp b/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
index 16ea792a9b94d5d0f292d18706702dc3220d91c1..2a164b568c08949c8c51da1c15960a9b900ec9bf 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
@@ -10,6 +10,10 @@ namespace blink {
class CompositorElementIdTest : public ::testing::Test {};
+uint64_t IdFromCompositorElementId(CompositorElementId element_id) {
+ return element_id.id_ >> kCompositorNamespaceBitCount;
+}
+
TEST_F(CompositorElementIdTest, EncodeDecode) {
CompositorElementId element_id = CompositorElementIdFromDOMNodeId(
1, CompositorElementIdNamespace::kPrimary);
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositorElementId.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698