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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void finishAllRendering(); | 108 void finishAllRendering(); |
109 int frameNumber() const { return m_frameNumber; } | 109 int frameNumber() const { return m_frameNumber; } |
110 | 110 |
111 bool initializeLayerRenderer(PassRefPtr<GraphicsContext3D>); | 111 bool initializeLayerRenderer(PassRefPtr<GraphicsContext3D>); |
112 bool isContextLost(); | 112 bool isContextLost(); |
113 LayerRendererChromium* layerRenderer() { return m_layerRenderer.get(); } | 113 LayerRendererChromium* layerRenderer() { return m_layerRenderer.get(); } |
114 const LayerRendererCapabilities& layerRendererCapabilities() const; | 114 const LayerRendererCapabilities& layerRendererCapabilities() const; |
115 TextureAllocator* contentsTextureAllocator() const; | 115 TextureAllocator* contentsTextureAllocator() const; |
116 | 116 |
117 void swapBuffers(); | 117 bool swapBuffers(); |
118 | 118 |
119 void readback(void* pixels, const IntRect&); | 119 void readback(void* pixels, const IntRect&); |
120 | 120 |
121 void setRootLayer(PassOwnPtr<CCLayerImpl>); | 121 void setRootLayer(PassOwnPtr<CCLayerImpl>); |
122 PassOwnPtr<CCLayerImpl> releaseRootLayer() { return m_rootLayerImpl.release(
); } | 122 PassOwnPtr<CCLayerImpl> releaseRootLayer() { return m_rootLayerImpl.release(
); } |
123 | 123 |
124 CCLayerImpl* scrollLayer() const { return m_scrollLayerImpl; } | 124 CCLayerImpl* scrollLayer() const { return m_scrollLayerImpl; } |
125 | 125 |
126 bool visible() const { return m_visible; } | 126 bool visible() const { return m_visible; } |
127 void setVisible(bool); | 127 void setVisible(bool); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 OwnPtr<CCLayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; | 196 OwnPtr<CCLayerTreeHostImplTimeSourceAdapter> m_timeSourceClientAdapter; |
197 | 197 |
198 CCLayerSorter m_layerSorter; | 198 CCLayerSorter m_layerSorter; |
199 | 199 |
200 FloatRect m_rootDamageRect; | 200 FloatRect m_rootDamageRect; |
201 }; | 201 }; |
202 | 202 |
203 }; | 203 }; |
204 | 204 |
205 #endif | 205 #endif |
OLD | NEW |