| 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 27 matching lines...) Expand all Loading... |
| 38 static scoped_ptr<GLRenderer> create(RendererClient*, OutputSurface*, Resour
ceProvider*); | 38 static scoped_ptr<GLRenderer> create(RendererClient*, OutputSurface*, Resour
ceProvider*); |
| 39 | 39 |
| 40 virtual ~GLRenderer(); | 40 virtual ~GLRenderer(); |
| 41 | 41 |
| 42 virtual const RendererCapabilities& capabilities() const OVERRIDE; | 42 virtual const RendererCapabilities& capabilities() const OVERRIDE; |
| 43 | 43 |
| 44 WebKit::WebGraphicsContext3D* context(); | 44 WebKit::WebGraphicsContext3D* context(); |
| 45 | 45 |
| 46 virtual void viewportChanged() OVERRIDE; | 46 virtual void viewportChanged() OVERRIDE; |
| 47 | 47 |
| 48 virtual void receiveCompositorFrameAck(const CompositorFrameAck& ack) OVERRI
DE; |
| 49 |
| 48 // waits for rendering to finish | 50 // waits for rendering to finish |
| 49 virtual void finish() OVERRIDE; | 51 virtual void finish() OVERRIDE; |
| 50 | 52 |
| 51 virtual void doNoOp() OVERRIDE; | 53 virtual void doNoOp() OVERRIDE; |
| 52 // puts backbuffer onscreen | 54 // puts backbuffer onscreen |
| 53 virtual bool swapBuffers() OVERRIDE; | 55 virtual bool swapBuffers() OVERRIDE; |
| 54 | 56 |
| 55 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE; | 57 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE; |
| 56 | 58 |
| 57 virtual bool isContextLost() OVERRIDE; | 59 virtual bool isContextLost() OVERRIDE; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 247 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 246 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) | 248 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L
INE__)) |
| 247 #else | 249 #else |
| 248 #define GLC(context, x) (x) | 250 #define GLC(context, x) (x) |
| 249 #endif | 251 #endif |
| 250 | 252 |
| 251 | 253 |
| 252 } | 254 } |
| 253 | 255 |
| 254 #endif // CC_GL_RENDERER_H_ | 256 #endif // CC_GL_RENDERER_H_ |
| OLD | NEW |