Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: cc/gl_renderer.h

Issue 12220095: cc: Fix resource provider fences and add DCHECKs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bot Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/gl_renderer.cc » ('j') | content/renderer/gpu/compositor_output_surface.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_GL_RENDERER_H_ 5 #ifndef CC_GL_RENDERER_H_
6 #define CC_GL_RENDERER_H_ 6 #define CC_GL_RENDERER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/checkerboard_draw_quad.h" 9 #include "cc/checkerboard_draw_quad.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 bool m_discardBackbufferWhenNotVisible; 224 bool m_discardBackbufferWhenNotVisible;
225 bool m_isUsingBindUniform; 225 bool m_isUsingBindUniform;
226 bool m_visible; 226 bool m_visible;
227 bool m_isScissorEnabled; 227 bool m_isScissorEnabled;
228 bool m_blendShadow; 228 bool m_blendShadow;
229 unsigned m_programShadow; 229 unsigned m_programShadow;
230 TexturedQuadDrawCache m_drawCache; 230 TexturedQuadDrawCache m_drawCache;
231 231
232 scoped_ptr<ResourceProvider::ScopedWriteLockGL> m_currentFramebufferLock; 232 scoped_ptr<ResourceProvider::ScopedWriteLockGL> m_currentFramebufferLock;
233 233
234 scoped_refptr<ResourceProvider::Fence> m_lastSwapFence;
235
234 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 236 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
235 }; 237 };
236 238
237 239
238 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL 240 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL
239 // call made by the compositor. Useful for debugging rendering issues but 241 // call made by the compositor. Useful for debugging rendering issues but
240 // will significantly degrade performance. 242 // will significantly degrade performance.
241 #define DEBUG_GL_CALLS 0 243 #define DEBUG_GL_CALLS 0
242 244
243 #if DEBUG_GL_CALLS && !defined(NDEBUG) 245 #if DEBUG_GL_CALLS && !defined(NDEBUG)
244 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) 246 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__))
245 #else 247 #else
246 #define GLC(context, x) (x) 248 #define GLC(context, x) (x)
247 #endif 249 #endif
248 250
249 251
250 } 252 }
251 253
252 #endif // CC_GL_RENDERER_H_ 254 #endif // CC_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/gl_renderer.cc » ('j') | content/renderer/gpu/compositor_output_surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698