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

Side by Side Diff: cc/trees/mutator_host_client.h

Issue 1922393002: CC Animation: Unify ElementId in Blink Compositor Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@player
Patch Set: Remove NextElementId. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_TREES_MUTATOR_HOST_CLIENT_H_ 5 #ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_
6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_ 6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_
7 7
8 #include "cc/trees/element_id.h"
9
8 namespace gfx { 10 namespace gfx {
9 class Transform; 11 class Transform;
10 class ScrollOffset; 12 class ScrollOffset;
11 } 13 }
12 14
13 namespace cc { 15 namespace cc {
14 16
15 class FilterOperations; 17 class FilterOperations;
16 18
17 using ElementId = int;
18
19 enum class ElementListType { ACTIVE, PENDING }; 19 enum class ElementListType { ACTIVE, PENDING };
20 20
21 class MutatorHostClient { 21 class MutatorHostClient {
22 public: 22 public:
23 virtual bool IsElementInList(ElementId element_id, 23 virtual bool IsElementInList(ElementId element_id,
24 ElementListType list_type) const = 0; 24 ElementListType list_type) const = 0;
25 25
26 virtual void SetMutatorsNeedCommit() = 0; 26 virtual void SetMutatorsNeedCommit() = 0;
27 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; 27 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0;
28 28
(...skipping 17 matching lines...) Expand all
46 bool is_animating) = 0; 46 bool is_animating) = 0;
47 47
48 virtual void ScrollOffsetAnimationFinished() = 0; 48 virtual void ScrollOffsetAnimationFinished() = 0;
49 virtual gfx::ScrollOffset GetScrollOffsetForAnimation( 49 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(
50 ElementId element_id) const = 0; 50 ElementId element_id) const = 0;
51 }; 51 };
52 52
53 } // namespace cc 53 } // namespace cc
54 54
55 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ 55 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/element_id.h ('k') | third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698