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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h

Issue 2041193005: [compositorworker] compositor proxy mutation updates underlying layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-upstream-registration
Patch Set: Use RAII pattern Created 4 years, 6 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
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 3f1b8fce503c79944579e0fb93137155ae976462..3f0bc4eaf11d811077b846da8dbc1e1e2dfc7e9c 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.h
@@ -6,9 +6,9 @@
#define CompositorMutableStateProvider_h
#include "platform/PlatformExport.h"
-#include "wtf/PassOwnPtr.h"
#include <cstdint>
+#include <memory>
namespace cc {
class LayerTreeImpl;
@@ -26,9 +26,10 @@ public:
CompositorMutableStateProvider(cc::LayerTreeImpl*, CompositorMutations*);
~CompositorMutableStateProvider();
- PassOwnPtr<CompositorMutableState> getMutableStateFor(uint64_t elementId);
+ std::unique_ptr<CompositorMutableState> getMutableStateFor(uint64_t elementId);
+
private:
- cc::LayerTreeImpl* m_state;
+ cc::LayerTreeImpl* m_tree;
CompositorMutations* m_mutations;
};

Powered by Google App Engine
This is Rietveld 408576698