| 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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/base/scoped_ptr_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 WebKit::WebGraphicsContext3D* Context(); | 54 WebKit::WebGraphicsContext3D* Context(); |
| 55 | 55 |
| 56 virtual void ViewportChanged() OVERRIDE; | 56 virtual void ViewportChanged() OVERRIDE; |
| 57 | 57 |
| 58 // Waits for rendering to finish. | 58 // Waits for rendering to finish. |
| 59 virtual void Finish() OVERRIDE; | 59 virtual void Finish() OVERRIDE; |
| 60 | 60 |
| 61 virtual void DoNoOp() OVERRIDE; | 61 virtual void DoNoOp() OVERRIDE; |
| 62 // Puts backbuffer onscreen. | 62 // Puts backbuffer onscreen. |
| 63 virtual void SwapBuffers(const LatencyInfo& latency_info) OVERRIDE; | 63 virtual void SwapBuffers(const ui::LatencyInfo& latency_info) OVERRIDE; |
| 64 | 64 |
| 65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
| 66 | 66 |
| 67 virtual bool IsContextLost() OVERRIDE; | 67 virtual bool IsContextLost() OVERRIDE; |
| 68 | 68 |
| 69 virtual void SetVisible(bool visible) OVERRIDE; | 69 virtual void SetVisible(bool visible) OVERRIDE; |
| 70 | 70 |
| 71 virtual void SendManagedMemoryStats(size_t bytes_visible, | 71 virtual void SendManagedMemoryStats(size_t bytes_visible, |
| 72 size_t bytes_visible_and_nearby, | 72 size_t bytes_visible_and_nearby, |
| 73 size_t bytes_allocated) OVERRIDE; | 73 size_t bytes_allocated) OVERRIDE; |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 428 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 429 #define GLC(context, x) \ | 429 #define GLC(context, x) \ |
| 430 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 430 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 431 #else | 431 #else |
| 432 #define GLC(context, x) (x) | 432 #define GLC(context, x) (x) |
| 433 #endif | 433 #endif |
| 434 | 434 |
| 435 } // namespace cc | 435 } // namespace cc |
| 436 | 436 |
| 437 #endif // CC_OUTPUT_GL_RENDERER_H_ | 437 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |