| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 WebKit::WebGraphicsContext3D* Context(); | 50 WebKit::WebGraphicsContext3D* Context(); |
| 51 | 51 |
| 52 virtual void ViewportChanged() OVERRIDE; | 52 virtual void ViewportChanged() OVERRIDE; |
| 53 | 53 |
| 54 // Waits for rendering to finish. | 54 // Waits for rendering to finish. |
| 55 virtual void Finish() OVERRIDE; | 55 virtual void Finish() OVERRIDE; |
| 56 | 56 |
| 57 virtual void DoNoOp() OVERRIDE; | 57 virtual void DoNoOp() OVERRIDE; |
| 58 // Puts backbuffer onscreen. | 58 // Puts backbuffer onscreen. |
| 59 virtual bool SwapBuffers() OVERRIDE; | 59 virtual bool SwapBuffers(const LatencyInfo& latency_info) OVERRIDE; |
| 60 | 60 |
| 61 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 61 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
| 62 | 62 |
| 63 virtual bool IsContextLost() OVERRIDE; | 63 virtual bool IsContextLost() OVERRIDE; |
| 64 | 64 |
| 65 virtual void SetVisible(bool visible) OVERRIDE; | 65 virtual void SetVisible(bool visible) OVERRIDE; |
| 66 | 66 |
| 67 virtual void SendManagedMemoryStats(size_t bytes_visible, | 67 virtual void SendManagedMemoryStats(size_t bytes_visible, |
| 68 size_t bytes_visible_and_nearby, | 68 size_t bytes_visible_and_nearby, |
| 69 size_t bytes_allocated) OVERRIDE; | 69 size_t bytes_allocated) OVERRIDE; |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 385 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 386 #define GLC(context, x) \ | 386 #define GLC(context, x) \ |
| 387 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 387 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 388 #else | 388 #else |
| 389 #define GLC(context, x) (x) | 389 #define GLC(context, x) (x) |
| 390 #endif | 390 #endif |
| 391 | 391 |
| 392 } // namespace cc | 392 } // namespace cc |
| 393 | 393 |
| 394 #endif // CC_OUTPUT_GL_RENDERER_H_ | 394 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |