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_deque.h" | 10 #include "cc/base/scoped_ptr_deque.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 const gfx::Size& size); | 250 const gfx::Size& size); |
251 | 251 |
252 void ReinitializeGLState(); | 252 void ReinitializeGLState(); |
253 void RestoreGLState(); | 253 void RestoreGLState(); |
254 void RestoreFramebuffer(DrawingFrame* frame); | 254 void RestoreFramebuffer(DrawingFrame* frame); |
255 | 255 |
256 void DiscardBackbuffer() override; | 256 void DiscardBackbuffer() override; |
257 void EnsureBackbuffer() override; | 257 void EnsureBackbuffer() override; |
258 void EnforceMemoryPolicy(); | 258 void EnforceMemoryPolicy(); |
259 | 259 |
260 void ScheduleOverlays(DrawingFrame* frame); | 260 void ScheduleOverlays(DrawingFrame* frame) override; |
261 | 261 |
262 typedef ScopedPtrVector<ResourceProvider::ScopedReadLockGL> | 262 typedef ScopedPtrVector<ResourceProvider::ScopedReadLockGL> |
263 OverlayResourceLockList; | 263 OverlayResourceLockList; |
264 OverlayResourceLockList pending_overlay_resources_; | 264 OverlayResourceLockList pending_overlay_resources_; |
265 OverlayResourceLockList in_use_overlay_resources_; | 265 OverlayResourceLockList in_use_overlay_resources_; |
266 | 266 |
267 RendererCapabilitiesImpl capabilities_; | 267 RendererCapabilitiesImpl capabilities_; |
268 | 268 |
269 unsigned offscreen_framebuffer_id_; | 269 unsigned offscreen_framebuffer_id_; |
270 | 270 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 524 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
525 #define GLC(context, x) \ | 525 #define GLC(context, x) \ |
526 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 526 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
527 #else | 527 #else |
528 #define GLC(context, x) (x) | 528 #define GLC(context, x) (x) |
529 #endif | 529 #endif |
530 | 530 |
531 } // namespace cc | 531 } // namespace cc |
532 | 532 |
533 #endif // CC_OUTPUT_GL_RENDERER_H_ | 533 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |