| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 72 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
| 73 | 73 |
| 74 virtual bool IsContextLost() OVERRIDE; | 74 virtual bool IsContextLost() OVERRIDE; |
| 75 | 75 |
| 76 virtual void SetVisible(bool visible) OVERRIDE; | 76 virtual void SetVisible(bool visible) OVERRIDE; |
| 77 | 77 |
| 78 virtual void SendManagedMemoryStats(size_t bytes_visible, | 78 virtual void SendManagedMemoryStats(size_t bytes_visible, |
| 79 size_t bytes_visible_and_nearby, | 79 size_t bytes_visible_and_nearby, |
| 80 size_t bytes_allocated) OVERRIDE; | 80 size_t bytes_allocated) OVERRIDE; |
| 81 | 81 |
| 82 static void DebugGLCall(blink::WebGraphicsContext3D* context, | 82 static void DebugGLCall(gpu::gles2::GLES2Interface* gl, |
| 83 const char* command, | 83 const char* command, |
| 84 const char* file, | 84 const char* file, |
| 85 int line); | 85 int line); |
| 86 | 86 |
| 87 bool CanUseSkiaGPUBackend() const; | 87 bool CanUseSkiaGPUBackend() const; |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 GLRenderer(RendererClient* client, | 90 GLRenderer(RendererClient* client, |
| 91 const LayerTreeSettings* settings, | 91 const LayerTreeSettings* settings, |
| 92 OutputSurface* output_surface, | 92 OutputSurface* output_surface, |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 453 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 454 #define GLC(context, x) \ | 454 #define GLC(context, x) \ |
| 455 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 455 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 456 #else | 456 #else |
| 457 #define GLC(context, x) (x) | 457 #define GLC(context, x) (x) |
| 458 #endif | 458 #endif |
| 459 | 459 |
| 460 } // namespace cc | 460 } // namespace cc |
| 461 | 461 |
| 462 #endif // CC_OUTPUT_GL_RENDERER_H_ | 462 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |