| 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 CCLayerTreeHost(CCLayerTreeHostClient*, const CCSettings&); | 160 CCLayerTreeHost(CCLayerTreeHostClient*, const CCSettings&); |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 typedef Vector<RefPtr<LayerChromium> > LayerList; | 163 typedef Vector<RefPtr<LayerChromium> > LayerList; |
| 164 | 164 |
| 165 void paintLayerContents(const LayerList&); | 165 void paintLayerContents(const LayerList&); |
| 166 void updateLayers(LayerChromium*); | 166 void updateLayers(LayerChromium*); |
| 167 void updateCompositorResources(const LayerList&, GraphicsContext3D*); | 167 void updateCompositorResources(const LayerList&, GraphicsContext3D*); |
| 168 void updateCompositorResources(LayerChromium*, GraphicsContext3D*); | 168 void updateCompositorResources(LayerChromium*, GraphicsContext3D*); |
| 169 | 169 |
| 170 void clearRenderSurfacesRecursive(LayerChromium*); |
| 171 |
| 170 bool initialize(); | 172 bool initialize(); |
| 171 | 173 |
| 172 PassRefPtr<LayerRendererChromium> createLayerRenderer(); | 174 PassRefPtr<LayerRendererChromium> createLayerRenderer(); |
| 173 | 175 |
| 174 bool m_animating; | 176 bool m_animating; |
| 175 | 177 |
| 176 CCLayerTreeHostClient* m_client; | 178 CCLayerTreeHostClient* m_client; |
| 177 | 179 |
| 178 int m_frameNumber; | 180 int m_frameNumber; |
| 179 | 181 |
| 180 OwnPtr<CCProxy> m_proxy; | 182 OwnPtr<CCProxy> m_proxy; |
| 181 | 183 |
| 182 OwnPtr<GraphicsLayer> m_rootLayer; | 184 OwnPtr<GraphicsLayer> m_rootLayer; |
| 183 OwnPtr<NonCompositedContentHost> m_nonCompositedContentHost; | 185 OwnPtr<NonCompositedContentHost> m_nonCompositedContentHost; |
| 184 | 186 |
| 185 LayerList m_updateList; | 187 LayerList m_updateList; |
| 186 | 188 |
| 187 CCSettings m_settings; | 189 CCSettings m_settings; |
| 188 | 190 |
| 189 IntSize m_viewportSize; | 191 IntSize m_viewportSize; |
| 190 bool m_visible; | 192 bool m_visible; |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 } | 195 } |
| 194 | 196 |
| 195 #endif | 197 #endif |
| OLD | NEW |