| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 226 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 228 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) | 227 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) |
| 229 #else | 228 #else |
| 230 #define GLC(context, x) (x) | 229 #define GLC(context, x) (x) |
| 231 #endif | 230 #endif |
| 232 | 231 |
| 233 | 232 |
| 234 } | 233 } |
| 235 | 234 |
| 236 #endif | 235 #endif |
| OLD | NEW |