OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "CCRenderPassDrawQuad.h" | 7 #include "CCRenderPassDrawQuad.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 scoped_ptr<CCRenderPassDrawQuad> copyQuad(reinterpret_cast<CCRenderPassDrawQ
uad*>(new char[bytes])); | 42 scoped_ptr<CCRenderPassDrawQuad> copyQuad(reinterpret_cast<CCRenderPassDrawQ
uad*>(new char[bytes])); |
43 memcpy(copyQuad.get(), this, bytes); | 43 memcpy(copyQuad.get(), this, bytes); |
44 copyQuad->setSharedQuadState(copiedSharedQuadState); | 44 copyQuad->setSharedQuadState(copiedSharedQuadState); |
45 copyQuad->m_renderPassId = copiedRenderPassId; | 45 copyQuad->m_renderPassId = copiedRenderPassId; |
46 | 46 |
47 return copyQuad.Pass(); | 47 return copyQuad.Pass(); |
48 } | 48 } |
49 | 49 |
50 } // namespace cc | 50 } // namespace cc |
OLD | NEW |