OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 void setCompositeOffscreen(bool); | 116 void setCompositeOffscreen(bool); |
117 bool isCompositingOffscreen() const { return m_compositeOffscreen; } | 117 bool isCompositingOffscreen() const { return m_compositeOffscreen; } |
118 | 118 |
119 unsigned createLayerTexture(); | 119 unsigned createLayerTexture(); |
120 void deleteLayerTexture(unsigned); | 120 void deleteLayerTexture(unsigned); |
121 | 121 |
122 static void debugGLCall(GraphicsContext3D*, const char* command, const char*
file, int line); | 122 static void debugGLCall(GraphicsContext3D*, const char* command, const char*
file, int line); |
123 | 123 |
124 const TransformationMatrix& projectionMatrix() const { return m_projectionMa
trix; } | 124 const TransformationMatrix& projectionMatrix() const { return m_projectionMa
trix; } |
| 125 const TransformationMatrix& windowMatrix() const { return m_windowMatrix; } |
125 | 126 |
126 bool checkTextureSize(const IntSize&); | 127 bool checkTextureSize(const IntSize&); |
127 int maxTextureSize() const { return m_maxTextureSize; } | 128 int maxTextureSize() const { return m_maxTextureSize; } |
128 | 129 |
129 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } | 130 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } |
130 const LayerChromium::BorderProgram* borderProgram(); | 131 const LayerChromium::BorderProgram* borderProgram(); |
131 const CCHeadsUpDisplay::Program* headsUpDisplayProgram(); | 132 const CCHeadsUpDisplay::Program* headsUpDisplayProgram(); |
132 const RenderSurfaceChromium::Program* renderSurfaceProgram(); | 133 const RenderSurfaceChromium::Program* renderSurfaceProgram(); |
133 const RenderSurfaceChromium::MaskProgram* renderSurfaceMaskProgram(); | 134 const RenderSurfaceChromium::MaskProgram* renderSurfaceMaskProgram(); |
134 const LayerTilerChromium::Program* tilerProgram(); | 135 const LayerTilerChromium::Program* tilerProgram(); |
135 const LayerTilerChromium::ProgramSwizzle* tilerProgramSwizzle(); | 136 const LayerTilerChromium::ProgramSwizzle* tilerProgramSwizzle(); |
| 137 const LayerTilerChromium::ProgramAA* tilerProgramAA(); |
| 138 const LayerTilerChromium::ProgramSwizzleAA* tilerProgramSwizzleAA(); |
136 const CCCanvasLayerImpl::Program* canvasLayerProgram(); | 139 const CCCanvasLayerImpl::Program* canvasLayerProgram(); |
137 const CCPluginLayerImpl::Program* pluginLayerProgram(); | 140 const CCPluginLayerImpl::Program* pluginLayerProgram(); |
138 const CCVideoLayerImpl::RGBAProgram* videoLayerRGBAProgram(); | 141 const CCVideoLayerImpl::RGBAProgram* videoLayerRGBAProgram(); |
139 const CCVideoLayerImpl::YUVProgram* videoLayerYUVProgram(); | 142 const CCVideoLayerImpl::YUVProgram* videoLayerYUVProgram(); |
140 | 143 |
141 void resizeOnscreenContent(const IntSize&); | 144 void resizeOnscreenContent(const IntSize&); |
142 | 145 |
143 void getFramebufferPixels(void *pixels, const IntRect& rect); | 146 void getFramebufferPixels(void *pixels, const IntRect& rect); |
144 | 147 |
145 TextureManager* contentsTextureManager() const { return m_contentsTextureMan
ager.get(); } | 148 TextureManager* contentsTextureManager() const { return m_contentsTextureMan
ager.get(); } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 bool initializeSharedObjects(); | 207 bool initializeSharedObjects(); |
205 void cleanupSharedObjects(); | 208 void cleanupSharedObjects(); |
206 | 209 |
207 void setLayerRendererRecursive(LayerChromium*); | 210 void setLayerRendererRecursive(LayerChromium*); |
208 | 211 |
209 IntRect m_viewportVisibleRect; | 212 IntRect m_viewportVisibleRect; |
210 IntRect m_viewportContentRect; | 213 IntRect m_viewportContentRect; |
211 IntPoint m_viewportScrollPosition; | 214 IntPoint m_viewportScrollPosition; |
212 | 215 |
213 TransformationMatrix m_projectionMatrix; | 216 TransformationMatrix m_projectionMatrix; |
| 217 TransformationMatrix m_windowMatrix; |
214 | 218 |
215 RefPtr<LayerChromium> m_rootLayer; | 219 RefPtr<LayerChromium> m_rootLayer; |
216 OwnPtr<LayerTextureUpdater> m_rootLayerTextureUpdater; | 220 OwnPtr<LayerTextureUpdater> m_rootLayerTextureUpdater; |
217 OwnPtr<LayerTilerChromium> m_rootLayerContentTiler; | 221 OwnPtr<LayerTilerChromium> m_rootLayerContentTiler; |
218 | 222 |
219 bool m_hardwareCompositing; | 223 bool m_hardwareCompositing; |
220 bool m_accelerateDrawing; | 224 bool m_accelerateDrawing; |
221 | 225 |
222 OwnPtr<LayerList> m_computedRenderSurfaceLayerList; | 226 OwnPtr<LayerList> m_computedRenderSurfaceLayerList; |
223 | 227 |
224 RenderSurfaceChromium* m_currentRenderSurface; | 228 RenderSurfaceChromium* m_currentRenderSurface; |
225 unsigned m_offscreenFramebufferId; | 229 unsigned m_offscreenFramebufferId; |
226 bool m_compositeOffscreen; | 230 bool m_compositeOffscreen; |
227 | 231 |
228 // Maximum texture dimensions supported. | 232 // Maximum texture dimensions supported. |
229 int m_maxTextureSize; | 233 int m_maxTextureSize; |
230 | 234 |
231 // Store values that are shared between instances of each layer type | 235 // Store values that are shared between instances of each layer type |
232 // associated with this instance of the compositor. Since there can be | 236 // associated with this instance of the compositor. Since there can be |
233 // multiple instances of the compositor running in the same renderer process | 237 // multiple instances of the compositor running in the same renderer process |
234 // we cannot store these values in static variables. | 238 // we cannot store these values in static variables. |
235 OwnPtr<GeometryBinding> m_sharedGeometry; | 239 OwnPtr<GeometryBinding> m_sharedGeometry; |
236 OwnPtr<LayerChromium::BorderProgram> m_borderProgram; | 240 OwnPtr<LayerChromium::BorderProgram> m_borderProgram; |
237 OwnPtr<CCHeadsUpDisplay::Program> m_headsUpDisplayProgram; | 241 OwnPtr<CCHeadsUpDisplay::Program> m_headsUpDisplayProgram; |
238 OwnPtr<RenderSurfaceChromium::Program> m_renderSurfaceProgram; | 242 OwnPtr<RenderSurfaceChromium::Program> m_renderSurfaceProgram; |
239 OwnPtr<RenderSurfaceChromium::MaskProgram> m_renderSurfaceMaskProgram; | 243 OwnPtr<RenderSurfaceChromium::MaskProgram> m_renderSurfaceMaskProgram; |
240 OwnPtr<LayerTilerChromium::Program> m_tilerProgram; | 244 OwnPtr<LayerTilerChromium::Program> m_tilerProgram; |
241 OwnPtr<LayerTilerChromium::ProgramSwizzle> m_tilerProgramSwizzle; | 245 OwnPtr<LayerTilerChromium::ProgramSwizzle> m_tilerProgramSwizzle; |
| 246 OwnPtr<LayerTilerChromium::ProgramAA> m_tilerProgramAA; |
| 247 OwnPtr<LayerTilerChromium::ProgramSwizzleAA> m_tilerProgramSwizzleAA; |
242 OwnPtr<CCCanvasLayerImpl::Program> m_canvasLayerProgram; | 248 OwnPtr<CCCanvasLayerImpl::Program> m_canvasLayerProgram; |
243 OwnPtr<CCVideoLayerImpl::RGBAProgram> m_videoLayerRGBAProgram; | 249 OwnPtr<CCVideoLayerImpl::RGBAProgram> m_videoLayerRGBAProgram; |
244 OwnPtr<CCVideoLayerImpl::YUVProgram> m_videoLayerYUVProgram; | 250 OwnPtr<CCVideoLayerImpl::YUVProgram> m_videoLayerYUVProgram; |
245 OwnPtr<CCPluginLayerImpl::Program> m_pluginLayerProgram; | 251 OwnPtr<CCPluginLayerImpl::Program> m_pluginLayerProgram; |
246 | 252 |
247 OwnPtr<TextureManager> m_contentsTextureManager; | 253 OwnPtr<TextureManager> m_contentsTextureManager; |
248 OwnPtr<TextureManager> m_renderSurfaceTextureManager; | 254 OwnPtr<TextureManager> m_renderSurfaceTextureManager; |
249 | 255 |
250 OwnPtr<CCHeadsUpDisplay> m_headsUpDisplay; | 256 OwnPtr<CCHeadsUpDisplay> m_headsUpDisplay; |
251 | 257 |
(...skipping 26 matching lines...) Expand all Loading... |
278 #else | 284 #else |
279 #define GLC(context, x) (x) | 285 #define GLC(context, x) (x) |
280 #endif | 286 #endif |
281 | 287 |
282 | 288 |
283 } | 289 } |
284 | 290 |
285 #endif // USE(ACCELERATED_COMPOSITING) | 291 #endif // USE(ACCELERATED_COMPOSITING) |
286 | 292 |
287 #endif | 293 #endif |
OLD | NEW |