| 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_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
| 6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/direct_renderer.h" | 9 #include "cc/output/direct_renderer.h" |
| 10 #include "cc/output/gl_renderer_draw_cache.h" | 10 #include "cc/output/gl_renderer_draw_cache.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void ViewportChanged() OVERRIDE; | 57 virtual void ViewportChanged() OVERRIDE; |
| 58 | 58 |
| 59 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack) | 59 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack) |
| 60 OVERRIDE; | 60 OVERRIDE; |
| 61 | 61 |
| 62 // Waits for rendering to finish. | 62 // Waits for rendering to finish. |
| 63 virtual void Finish() OVERRIDE; | 63 virtual void Finish() OVERRIDE; |
| 64 | 64 |
| 65 virtual void DoNoOp() OVERRIDE; | 65 virtual void DoNoOp() OVERRIDE; |
| 66 // Puts backbuffer onscreen. | 66 // Puts backbuffer onscreen. |
| 67 virtual bool SwapBuffers() OVERRIDE; | 67 virtual bool SwapBuffers(const LatencyInfo& latency_info) OVERRIDE; |
| 68 | 68 |
| 69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
| 70 | 70 |
| 71 virtual bool IsContextLost() OVERRIDE; | 71 virtual bool IsContextLost() OVERRIDE; |
| 72 | 72 |
| 73 virtual void SetVisible(bool visible) OVERRIDE; | 73 virtual void SetVisible(bool visible) OVERRIDE; |
| 74 | 74 |
| 75 virtual void SendManagedMemoryStats(size_t bytes_visible, | 75 virtual void SendManagedMemoryStats(size_t bytes_visible, |
| 76 size_t bytes_visible_and_nearby, | 76 size_t bytes_visible_and_nearby, |
| 77 size_t bytes_allocated) OVERRIDE; | 77 size_t bytes_allocated) OVERRIDE; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 401 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 402 #define GLC(context, x) \ | 402 #define GLC(context, x) \ |
| 403 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 403 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 404 #else | 404 #else |
| 405 #define GLC(context, x) (x) | 405 #define GLC(context, x) (x) |
| 406 #endif | 406 #endif |
| 407 | 407 |
| 408 } // namespace cc | 408 } // namespace cc |
| 409 | 409 |
| 410 #endif // CC_OUTPUT_GL_RENDERER_H_ | 410 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |