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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMappingPtr.h

Issue 264013002: Allow layers that need squashing to draw into the squashing layer in some cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adjust. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CompositedLayerMappingPtr_h 5 #ifndef CompositedLayerMappingPtr_h
6 #define CompositedLayerMappingPtr_h 6 #define CompositedLayerMappingPtr_h
7 7
8 #include "wtf/Assertions.h" 8 #include "wtf/Assertions.h"
9 9
10 namespace WebCore { 10 namespace WebCore {
(...skipping 12 matching lines...) Expand all
23 ASSERT(m_mapping); 23 ASSERT(m_mapping);
24 return *m_mapping; 24 return *m_mapping;
25 } 25 }
26 26
27 CompositedLayerMapping* operator->() const 27 CompositedLayerMapping* operator->() const
28 { 28 {
29 ASSERT(m_mapping); 29 ASSERT(m_mapping);
30 return m_mapping; 30 return m_mapping;
31 } 31 }
32 32
33 bool equals(const CompositedLayerMapping* other) const
34 {
35 return m_mapping == other;
36 }
37
33 private: 38 private:
34 CompositedLayerMapping* m_mapping; 39 CompositedLayerMapping* m_mapping;
35 }; 40 };
36 41
37 } // namespace WebCore 42 } // namespace WebCore
38 43
39 #endif // CompositedLayerMappingPtr_h 44 #endif // CompositedLayerMappingPtr_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698