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

Unified Diff: mojo/ui/gl_renderer.h

Issue 1993073005: Mozart: Avoid blocking in glCheckFramebufferStatus(). (Closed) Base URL: git@github.com:domokit/mojo.git@moz-jank3
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/skia/ganesh_image_factory.cc ('k') | mojo/ui/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/gl_renderer.h
diff --git a/mojo/ui/gl_renderer.h b/mojo/ui/gl_renderer.h
index 4682b3daba3a4dc19ae016e9f1959dadda4b19e8..baf09b92360fe19b8e81575b64769f1f5e0f1b83 100644
--- a/mojo/ui/gl_renderer.h
+++ b/mojo/ui/gl_renderer.h
@@ -9,6 +9,7 @@
#include <memory>
#include "base/callback.h"
+#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
@@ -103,6 +104,10 @@ class GLRenderer {
std::deque<GLRecycledTextureInfo> recycled_textures_;
uint32_t bound_textures_ = 0u;
+#if DCHECK_IS_ON()
+ bool checked_framebuffer_status_ = false;
+#endif
+
base::WeakPtrFactory<mojo::ui::GLRenderer> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(GLRenderer);
« no previous file with comments | « mojo/skia/ganesh_image_factory.cc ('k') | mojo/ui/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698