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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 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 #include "platform/graphics/CompositorMutableStateProvider.h" 5 #include "platform/graphics/CompositorMutableStateProvider.h"
6 6
7 #include "cc/layers/layer_impl.h" 7 #include "cc/layers/layer_impl.h"
8 #include "cc/trees/layer_tree_impl.h" 8 #include "cc/trees/layer_tree_impl.h"
9 #include "platform/graphics/CompositorElementId.h" 9 #include "platform/graphics/CompositorElementId.h"
10 #include "platform/graphics/CompositorMutableProperties.h" 10 #include "platform/graphics/CompositorMutableProperties.h"
(...skipping 21 matching lines...) Expand all
32 if (!mainLayer && !scrollLayer) 32 if (!mainLayer && !scrollLayer)
33 return nullptr; 33 return nullptr;
34 34
35 // Ensure that we have an entry in the map for |elementId| but do as few 35 // Ensure that we have an entry in the map for |elementId| but do as few
36 // allocations and queries as possible. This will update the map only if we 36 // allocations and queries as possible. This will update the map only if we
37 // have not added a value for |elementId|. 37 // have not added a value for |elementId|.
38 auto result = m_mutations->map.add(elementId, nullptr); 38 auto result = m_mutations->map.add(elementId, nullptr);
39 39
40 // Only if this is a new entry do we want to allocate a new mutation. 40 // Only if this is a new entry do we want to allocate a new mutation.
41 if (result.isNewEntry) 41 if (result.isNewEntry)
42 result.storedValue->value = wrapUnique(new CompositorMutation); 42 result.storedValue->value = WTF::wrapUnique(new CompositorMutation);
43 43
44 return wrapUnique(new CompositorMutableState(result.storedValue->value.get(), 44 return WTF::wrapUnique(new CompositorMutableState(
45 mainLayer, scrollLayer)); 45 result.storedValue->value.get(), mainLayer, scrollLayer));
46 } 46 }
47 47
48 } // namespace blink 48 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698