| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 78 | 78 |
| 79 static void DebugGLCall(blink::WebGraphicsContext3D* context, | 79 static void DebugGLCall(gpu::gles2::GLES2Interface* gl, |
| 80 const char* command, | 80 const char* command, |
| 81 const char* file, | 81 const char* file, |
| 82 int line); | 82 int line); |
| 83 | 83 |
| 84 protected: | 84 protected: |
| 85 GLRenderer(RendererClient* client, | 85 GLRenderer(RendererClient* client, |
| 86 const LayerTreeSettings* settings, | 86 const LayerTreeSettings* settings, |
| 87 OutputSurface* output_surface, | 87 OutputSurface* output_surface, |
| 88 ResourceProvider* resource_provider, | 88 ResourceProvider* resource_provider, |
| 89 TextureMailboxDeleter* texture_mailbox_deleter, | 89 TextureMailboxDeleter* texture_mailbox_deleter, |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 444 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 445 #define GLC(context, x) \ | 445 #define GLC(context, x) \ |
| 446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 447 #else | 447 #else |
| 448 #define GLC(context, x) (x) | 448 #define GLC(context, x) (x) |
| 449 #endif | 449 #endif |
| 450 | 450 |
| 451 } // namespace cc | 451 } // namespace cc |
| 452 | 452 |
| 453 #endif // CC_OUTPUT_GL_RENDERER_H_ | 453 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |