| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 static void debugGLCall(GraphicsContext3D*, const char* command, const char*
file, int line); | 103 static void debugGLCall(GraphicsContext3D*, const char* command, const char*
file, int line); |
| 104 | 104 |
| 105 const TransformationMatrix& projectionMatrix() const { return m_projectionMa
trix; } | 105 const TransformationMatrix& projectionMatrix() const { return m_projectionMa
trix; } |
| 106 | 106 |
| 107 void useShader(unsigned); | 107 void useShader(unsigned); |
| 108 | 108 |
| 109 bool checkTextureSize(const IntSize&); | 109 bool checkTextureSize(const IntSize&); |
| 110 | 110 |
| 111 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } | 111 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } |
| 112 const LayerChromium::BorderProgram* borderProgram() const { return m_borderP
rogram.get(); } | 112 const LayerChromium::BorderProgram* borderProgram() const { return m_borderP
rogram.get(); } |
| 113 const CCHeadsUpDisplay::Program* headsUpDisplayProgram() const { return m_he
adsUpDisplayProgram.get(); } |
| 113 const RenderSurfaceChromium::Program* renderSurfaceProgram() const { return
m_renderSurfaceProgram.get(); } | 114 const RenderSurfaceChromium::Program* renderSurfaceProgram() const { return
m_renderSurfaceProgram.get(); } |
| 114 const RenderSurfaceChromium::MaskProgram* renderSurfaceMaskProgram() const {
return m_renderSurfaceMaskProgram.get(); } | 115 const RenderSurfaceChromium::MaskProgram* renderSurfaceMaskProgram() const {
return m_renderSurfaceMaskProgram.get(); } |
| 115 const LayerTilerChromium::Program* tilerProgram() const { return m_tilerProg
ram.get(); } | 116 const LayerTilerChromium::Program* tilerProgram() const { return m_tilerProg
ram.get(); } |
| 116 const CCCanvasLayerImpl::Program* canvasLayerProgram() const { return m_canv
asLayerProgram.get(); } | 117 const CCCanvasLayerImpl::Program* canvasLayerProgram() const { return m_canv
asLayerProgram.get(); } |
| 117 const CCPluginLayerImpl::Program* pluginLayerProgram() const { return m_plug
inLayerProgram.get(); } | 118 const CCPluginLayerImpl::Program* pluginLayerProgram() const { return m_plug
inLayerProgram.get(); } |
| 118 const CCVideoLayerImpl::RGBAProgram* videoLayerRGBAProgram() const { return
m_videoLayerRGBAProgram.get(); } | 119 const CCVideoLayerImpl::RGBAProgram* videoLayerRGBAProgram() const { return
m_videoLayerRGBAProgram.get(); } |
| 119 const CCVideoLayerImpl::YUVProgram* videoLayerYUVProgram() const { return m_
videoLayerYUVProgram.get(); } | 120 const CCVideoLayerImpl::YUVProgram* videoLayerYUVProgram() const { return m_
videoLayerYUVProgram.get(); } |
| 120 | 121 |
| 121 void resizeOnscreenContent(const IntSize&); | 122 void resizeOnscreenContent(const IntSize&); |
| 122 | 123 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 199 |
| 199 // Maximum texture dimensions supported. | 200 // Maximum texture dimensions supported. |
| 200 int m_maxTextureSize; | 201 int m_maxTextureSize; |
| 201 | 202 |
| 202 // Store values that are shared between instances of each layer type | 203 // Store values that are shared between instances of each layer type |
| 203 // associated with this instance of the compositor. Since there can be | 204 // associated with this instance of the compositor. Since there can be |
| 204 // multiple instances of the compositor running in the same renderer process | 205 // multiple instances of the compositor running in the same renderer process |
| 205 // we cannot store these values in static variables. | 206 // we cannot store these values in static variables. |
| 206 OwnPtr<GeometryBinding> m_sharedGeometry; | 207 OwnPtr<GeometryBinding> m_sharedGeometry; |
| 207 OwnPtr<LayerChromium::BorderProgram> m_borderProgram; | 208 OwnPtr<LayerChromium::BorderProgram> m_borderProgram; |
| 209 OwnPtr<CCHeadsUpDisplay::Program> m_headsUpDisplayProgram; |
| 208 OwnPtr<RenderSurfaceChromium::Program> m_renderSurfaceProgram; | 210 OwnPtr<RenderSurfaceChromium::Program> m_renderSurfaceProgram; |
| 209 OwnPtr<RenderSurfaceChromium::MaskProgram> m_renderSurfaceMaskProgram; | 211 OwnPtr<RenderSurfaceChromium::MaskProgram> m_renderSurfaceMaskProgram; |
| 210 OwnPtr<LayerTilerChromium::Program> m_tilerProgram; | 212 OwnPtr<LayerTilerChromium::Program> m_tilerProgram; |
| 211 OwnPtr<CCCanvasLayerImpl::Program> m_canvasLayerProgram; | 213 OwnPtr<CCCanvasLayerImpl::Program> m_canvasLayerProgram; |
| 212 OwnPtr<CCVideoLayerImpl::RGBAProgram> m_videoLayerRGBAProgram; | 214 OwnPtr<CCVideoLayerImpl::RGBAProgram> m_videoLayerRGBAProgram; |
| 213 OwnPtr<CCVideoLayerImpl::YUVProgram> m_videoLayerYUVProgram; | 215 OwnPtr<CCVideoLayerImpl::YUVProgram> m_videoLayerYUVProgram; |
| 214 OwnPtr<CCPluginLayerImpl::Program> m_pluginLayerProgram; | 216 OwnPtr<CCPluginLayerImpl::Program> m_pluginLayerProgram; |
| 215 | 217 |
| 216 OwnPtr<TextureManager> m_textureManager; | 218 OwnPtr<TextureManager> m_textureManager; |
| 217 | 219 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 241 #else | 243 #else |
| 242 #define GLC(context, x) (x) | 244 #define GLC(context, x) (x) |
| 243 #endif | 245 #endif |
| 244 | 246 |
| 245 | 247 |
| 246 } | 248 } |
| 247 | 249 |
| 248 #endif // USE(ACCELERATED_COMPOSITING) | 250 #endif // USE(ACCELERATED_COMPOSITING) |
| 249 | 251 |
| 250 #endif | 252 #endif |
| OLD | NEW |