Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CCRendererGL_h | 5 #ifndef CCRendererGL_h |
| 6 #define CCRendererGL_h | 6 #define CCRendererGL_h |
| 7 | 7 |
| 8 #include "cc/checkerboard_draw_quad.h" | 8 #include "cc/checkerboard_draw_quad.h" |
| 9 #include "cc/debug_border_draw_quad.h" | 9 #include "cc/debug_border_draw_quad.h" |
| 10 #include "cc/direct_renderer.h" | 10 #include "cc/direct_renderer.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 bool makeContextCurrent(); | 109 bool makeContextCurrent(); |
| 110 | 110 |
| 111 bool initializeSharedObjects(); | 111 bool initializeSharedObjects(); |
| 112 void cleanupSharedObjects(); | 112 void cleanupSharedObjects(); |
| 113 | 113 |
| 114 // WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROM IUM implementation. | 114 // WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROM IUM implementation. |
| 115 virtual void onSwapBuffersComplete() OVERRIDE; | 115 virtual void onSwapBuffersComplete() OVERRIDE; |
| 116 | 116 |
| 117 // WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackC HROMIUM implementation. | 117 // WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackC HROMIUM implementation. |
| 118 virtual void onMemoryAllocationChanged(WebKit::WebGraphicsMemoryAllocation) OVERRIDE; | 118 virtual void onMemoryAllocationChanged(WebKit::WebGraphicsMemoryAllocation) OVERRIDE; |
| 119 void onMemoryAllocationChangedOnImplThread(WebKit::WebGraphicsMemoryAllocati on); | |
| 120 void discardFramebuffer(); | 119 void discardFramebuffer(); |
| 121 void ensureFramebuffer(); | 120 void ensureFramebuffer(); |
| 122 void enforceMemoryPolicy(); | 121 void enforceMemoryPolicy(); |
| 123 | 122 |
| 124 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation. | 123 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation. |
| 125 virtual void onContextLost() OVERRIDE; | 124 virtual void onContextLost() OVERRIDE; |
| 126 | 125 |
| 127 RendererCapabilities m_capabilities; | 126 RendererCapabilities m_capabilities; |
| 128 | 127 |
| 129 unsigned m_offscreenFramebufferId; | 128 unsigned m_offscreenFramebufferId; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 | 174 |
| 176 const TextureProgram* textureProgram(); | 175 const TextureProgram* textureProgram(); |
| 177 const TextureProgramFlip* textureProgramFlip(); | 176 const TextureProgramFlip* textureProgramFlip(); |
| 178 const TextureIOSurfaceProgram* textureIOSurfaceProgram(); | 177 const TextureIOSurfaceProgram* textureIOSurfaceProgram(); |
| 179 | 178 |
| 180 const VideoYUVProgram* videoYUVProgram(); | 179 const VideoYUVProgram* videoYUVProgram(); |
| 181 const VideoStreamTextureProgram* videoStreamTextureProgram(); | 180 const VideoStreamTextureProgram* videoStreamTextureProgram(); |
| 182 | 181 |
| 183 const SolidColorProgram* solidColorProgram(); | 182 const SolidColorProgram* solidColorProgram(); |
| 184 | 183 |
| 184 bool m_hasImplThread; | |
|
jamesr
2012/10/31 04:42:13
it looks like the code in gl_renderer.cc is callin
| |
| 185 | |
| 185 scoped_ptr<TileProgram> m_tileProgram; | 186 scoped_ptr<TileProgram> m_tileProgram; |
| 186 scoped_ptr<TileProgramOpaque> m_tileProgramOpaque; | 187 scoped_ptr<TileProgramOpaque> m_tileProgramOpaque; |
| 187 scoped_ptr<TileProgramAA> m_tileProgramAA; | 188 scoped_ptr<TileProgramAA> m_tileProgramAA; |
| 188 scoped_ptr<TileProgramSwizzle> m_tileProgramSwizzle; | 189 scoped_ptr<TileProgramSwizzle> m_tileProgramSwizzle; |
| 189 scoped_ptr<TileProgramSwizzleOpaque> m_tileProgramSwizzleOpaque; | 190 scoped_ptr<TileProgramSwizzleOpaque> m_tileProgramSwizzleOpaque; |
| 190 scoped_ptr<TileProgramSwizzleAA> m_tileProgramSwizzleAA; | 191 scoped_ptr<TileProgramSwizzleAA> m_tileProgramSwizzleAA; |
| 191 scoped_ptr<TileCheckerboardProgram> m_tileCheckerboardProgram; | 192 scoped_ptr<TileCheckerboardProgram> m_tileCheckerboardProgram; |
| 192 | 193 |
| 193 scoped_ptr<RenderPassProgram> m_renderPassProgram; | 194 scoped_ptr<RenderPassProgram> m_renderPassProgram; |
| 194 scoped_ptr<RenderPassProgramAA> m_renderPassProgramAA; | 195 scoped_ptr<RenderPassProgramAA> m_renderPassProgramAA; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 227 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 228 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 228 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) | 229 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) |
| 229 #else | 230 #else |
| 230 #define GLC(context, x) (x) | 231 #define GLC(context, x) (x) |
| 231 #endif | 232 #endif |
| 232 | 233 |
| 233 | 234 |
| 234 } | 235 } |
| 235 | 236 |
| 236 #endif | 237 #endif |
| OLD | NEW |