| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 CCRenderSurface* renderSurface() const { return m_renderSurface.get(); } | 151 CCRenderSurface* renderSurface() const { return m_renderSurface.get(); } |
| 152 void createRenderSurface(); | 152 void createRenderSurface(); |
| 153 void clearRenderSurface() { m_renderSurface.clear(); } | 153 void clearRenderSurface() { m_renderSurface.clear(); } |
| 154 | 154 |
| 155 float drawOpacity() const { return m_drawOpacity; } | 155 float drawOpacity() const { return m_drawOpacity; } |
| 156 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } | 156 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } |
| 157 | 157 |
| 158 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } | 158 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } |
| 159 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI
sAnimating = drawOpacityIsAnimating; } | 159 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI
sAnimating = drawOpacityIsAnimating; } |
| 160 | 160 |
| 161 // Usage: if this->usesLayerClipping() is false, then this clipRect should n
ot be used. |
| 161 const IntRect& clipRect() const { return m_clipRect; } | 162 const IntRect& clipRect() const { return m_clipRect; } |
| 162 void setClipRect(const IntRect& rect) { m_clipRect = rect; } | 163 void setClipRect(const IntRect& rect) { m_clipRect = rect; } |
| 163 CCRenderSurface* targetRenderSurface() const { return m_targetRenderSurface;
} | 164 CCRenderSurface* targetRenderSurface() const { return m_targetRenderSurface;
} |
| 164 void setTargetRenderSurface(CCRenderSurface* surface) { m_targetRenderSurfac
e = surface; } | 165 void setTargetRenderSurface(CCRenderSurface* surface) { m_targetRenderSurfac
e = surface; } |
| 165 | 166 |
| 166 void setBounds(const IntSize&); | 167 void setBounds(const IntSize&); |
| 167 | 168 |
| 168 const IntSize& contentBounds() const { return m_contentBounds; } | 169 const IntSize& contentBounds() const { return m_contentBounds; } |
| 169 void setContentBounds(const IntSize&); | 170 void setContentBounds(const IntSize&); |
| 170 | 171 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 361 |
| 361 // Manages animations for this layer. | 362 // Manages animations for this layer. |
| 362 OwnPtr<CCLayerAnimationController> m_layerAnimationController; | 363 OwnPtr<CCLayerAnimationController> m_layerAnimationController; |
| 363 }; | 364 }; |
| 364 | 365 |
| 365 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); | 366 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); |
| 366 | 367 |
| 367 } | 368 } |
| 368 | 369 |
| 369 #endif // CCLayerImpl_h | 370 #endif // CCLayerImpl_h |
| OLD | NEW |