OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "MockCCQuadCuller.h" | 7 #include "MockCCQuadCuller.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 CCSharedQuadState* MockCCQuadCuller::useSharedQuadState(scoped_ptr<CCSharedQuadS
tate> sharedQuadState) | 36 CCSharedQuadState* MockCCQuadCuller::useSharedQuadState(scoped_ptr<CCSharedQuadS
tate> sharedQuadState) |
37 { | 37 { |
38 sharedQuadState->id = m_activeSharedQuadStateList.size(); | 38 sharedQuadState->id = m_activeSharedQuadStateList.size(); |
39 | 39 |
40 CCSharedQuadState* rawPtr = sharedQuadState.get(); | 40 CCSharedQuadState* rawPtr = sharedQuadState.get(); |
41 m_activeSharedQuadStateList.append(sharedQuadState.Pass()); | 41 m_activeSharedQuadStateList.append(sharedQuadState.Pass()); |
42 return rawPtr; | 42 return rawPtr; |
43 } | 43 } |
44 | 44 |
45 } // namespace cc | 45 } // namespace cc |
OLD | NEW |