| OLD | NEW |
| 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 CompositorMutatorClient_h | 5 #ifndef CompositorMutatorClient_h |
| 6 #define CompositorMutatorClient_h | 6 #define CompositorMutatorClient_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 9 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 10 #include "public/platform/WebCompositorMutatorClient.h" | 11 #include "public/platform/WebCompositorMutatorClient.h" |
| 11 #include <memory> | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class CompositorMutator; | 15 class CompositorMutator; |
| 16 struct CompositorMutations; | 16 struct CompositorMutations; |
| 17 class CompositorMutationsTarget; | 17 class CompositorMutationsTarget; |
| 18 | 18 |
| 19 class PLATFORM_EXPORT CompositorMutatorClient | 19 class PLATFORM_EXPORT CompositorMutatorClient |
| 20 : public WebCompositorMutatorClient { | 20 : public WebCompositorMutatorClient { |
| 21 public: | 21 public: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 cc::LayerTreeMutatorClient* client_; | 37 cc::LayerTreeMutatorClient* client_; |
| 38 CompositorMutationsTarget* mutations_target_; | 38 CompositorMutationsTarget* mutations_target_; |
| 39 // Accessed by main and compositor threads. | 39 // Accessed by main and compositor threads. |
| 40 CrossThreadPersistent<CompositorMutator> mutator_; | 40 CrossThreadPersistent<CompositorMutator> mutator_; |
| 41 std::unique_ptr<CompositorMutations> mutations_; | 41 std::unique_ptr<CompositorMutations> mutations_; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| 45 | 45 |
| 46 #endif // CompositorMutatorClient_h | 46 #endif // CompositorMutatorClient_h |
| OLD | NEW |