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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 virtual ~GLRenderer(); | 51 virtual ~GLRenderer(); |
52 | 52 |
53 virtual const RendererCapabilities& Capabilities() const OVERRIDE; | 53 virtual const RendererCapabilities& Capabilities() const OVERRIDE; |
54 | 54 |
55 WebKit::WebGraphicsContext3D* Context(); | 55 WebKit::WebGraphicsContext3D* Context(); |
56 | 56 |
57 virtual void ViewportChanged() OVERRIDE; | 57 virtual void ViewportChanged() OVERRIDE; |
58 | 58 |
59 // Waits for rendering to finish. | 59 // Waits for rendering to finish. |
60 virtual void Finish() OVERRIDE; | 60 //virtual void Finish() OVERRIDE; |
61 | 61 |
62 virtual void DoNoOp() OVERRIDE; | 62 virtual void DoNoOp() OVERRIDE; |
63 virtual void SwapBuffers() OVERRIDE; | 63 virtual void SwapBuffers() 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 |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 448 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
449 #define GLC(context, x) \ | 449 #define GLC(context, x) \ |
450 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 450 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
451 #else | 451 #else |
452 #define GLC(context, x) (x) | 452 #define GLC(context, x) (x) |
453 #endif | 453 #endif |
454 | 454 |
455 } // namespace cc | 455 } // namespace cc |
456 | 456 |
457 #endif // CC_OUTPUT_GL_RENDERER_H_ | 457 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |