| 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 CC_GL_RENDERER_H_ | 5 #ifndef CC_GL_RENDERER_H_ |
| 6 #define CC_GL_RENDERER_H_ | 6 #define CC_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/checkerboard_draw_quad.h" | 9 #include "cc/checkerboard_draw_quad.h" |
| 10 #include "cc/debug_border_draw_quad.h" | 10 #include "cc/debug_border_draw_quad.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual void setVisible(bool) OVERRIDE; | 62 virtual void setVisible(bool) OVERRIDE; |
| 63 | 63 |
| 64 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible
AndNearby, size_t bytesAllocated) OVERRIDE; | 64 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible
AndNearby, size_t bytesAllocated) OVERRIDE; |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 GLRenderer(RendererClient*, ResourceProvider*); | 67 GLRenderer(RendererClient*, ResourceProvider*); |
| 68 | 68 |
| 69 static void debugGLCall(WebKit::WebGraphicsContext3D*, const char* command,
const char* file, int line); | 69 static void debugGLCall(WebKit::WebGraphicsContext3D*, const char* command,
const char* file, int line); |
| 70 | 70 |
| 71 bool isFramebufferDiscarded() const { return m_isFramebufferDiscarded; } | 71 bool isFramebufferDiscarded() const { return m_isFramebufferDiscarded; } |
| 72 bool initialize(); | 72 bool initialize(ResourceProvider*); |
| 73 | 73 |
| 74 const gfx::QuadF& sharedGeometryQuad() const { return m_sharedGeometryQuad;
} | 74 const gfx::QuadF& sharedGeometryQuad() const { return m_sharedGeometryQuad;
} |
| 75 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } | 75 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(
); } |
| 76 | 76 |
| 77 bool getFramebufferTexture(ScopedResource*, const gfx::Rect& deviceRect); | 77 bool getFramebufferTexture(ScopedResource*, const gfx::Rect& deviceRect); |
| 78 void releaseRenderPassTextures(); | 78 void releaseRenderPassTextures(); |
| 79 | 79 |
| 80 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; | 80 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; |
| 81 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*,
const gfx::Rect& framebufferRect) OVERRIDE; | 81 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*,
const gfx::Rect& framebufferRect) OVERRIDE; |
| 82 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; | 82 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 245 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 246 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) | 246 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) |
| 247 #else | 247 #else |
| 248 #define GLC(context, x) (x) | 248 #define GLC(context, x) (x) |
| 249 #endif | 249 #endif |
| 250 | 250 |
| 251 | 251 |
| 252 } | 252 } |
| 253 | 253 |
| 254 #endif // CC_GL_RENDERER_H_ | 254 #endif // CC_GL_RENDERER_H_ |
| OLD | NEW |