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

Unified Diff: gpu/gles2_conform_support/egl/display.cc

Issue 1220883008: Add command_buffer_gles2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify by exporting the egl functions Created 5 years, 4 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
Index: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index 18f474211e20b7a345f60d4c5cffda137501bc0b..2528cdcba5cee0b139e15a40df0b235b72498126 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -5,6 +5,7 @@
#include "gpu/gles2_conform_support/egl/display.h"
#include <vector>
+#include "base/at_exit.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
@@ -31,8 +32,8 @@ Display::Display(EGLNativeDisplayType display_id)
is_initialized_(false),
create_offscreen_(false),
create_offscreen_width_(0),
- create_offscreen_height_(0) {
-}
+ create_offscreen_height_(0),
+ exit_manager_(new base::AtExitManager) {}
Display::~Display() {
gles2::Terminate();

Powered by Google App Engine
This is Rietveld 408576698