Index: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h |
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h |
index 7cd920bf8191bfd3b9ca8bc96251de4e3d039ac9..adf3f934dd6825c0f2c395998fe13695ea15d81a 100644 |
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h |
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h |
@@ -5,9 +5,10 @@ |
#ifndef CompositorMutableStateProvider_h |
#define CompositorMutableStateProvider_h |
-#include "platform/PlatformExport.h" |
#include <cstdint> |
#include <memory> |
+#include "platform/PlatformExport.h" |
+#include "platform/graphics/CompositorElementId.h" |
namespace cc { |
class LayerTreeImpl; |
@@ -25,8 +26,10 @@ class PLATFORM_EXPORT CompositorMutableStateProvider { |
CompositorMutableStateProvider(cc::LayerTreeImpl*, CompositorMutations*); |
~CompositorMutableStateProvider(); |
- std::unique_ptr<CompositorMutableState> GetMutableStateFor( |
- uint64_t element_id); |
+ // TODO(chrishtr): the callsites for this are wrong - they pass a uint64_t |
+ // encoding of an Element pointer, which is bad because pointers can be |
+ // reused. Instead they should use DOMNodeId. |
+ std::unique_ptr<CompositorMutableState> GetMutableStateFor(DOMNodeId); |
private: |
cc::LayerTreeImpl* tree_; |