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

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

Issue 1640243002: command_buffer_gles2: Add test command_buffer_gles2_test for command_buffer_gles2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove debug Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer_gles2_tests_apk.isolate ('k') | gpu/gles2_conform_support/egl/egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9df0095c013938d575c77462fdae764c355d10d6..bf63108662beb6f4b25b7e14e37bc10084b8b783 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -23,6 +23,7 @@
#include "gpu/command_buffer/service/valuebuffer_manager.h"
#include "gpu/gles2_conform_support/egl/config.h"
#include "gpu/gles2_conform_support/egl/surface.h"
+#include "gpu/gles2_conform_support/egl/test_support.h"
namespace {
const int32_t kCommandBufferSize = 1024 * 1024;
@@ -40,6 +41,11 @@ int g_exit_manager_use_count;
base::AtExitManager* g_exit_manager;
void RefAtExitManager() {
base::AutoLock lock(g_exit_manager_lock.Get());
+#if defined(COMPONENT_BUILD)
+ if (g_command_buffer_gles_has_atexit_manager) {
+ return;
+ }
+#endif
if (g_exit_manager_use_count == 0) {
g_exit_manager = new base::AtExitManager;
}
@@ -47,6 +53,11 @@ void RefAtExitManager() {
}
void ReleaseAtExitManager() {
base::AutoLock lock(g_exit_manager_lock.Get());
+#if defined(COMPONENT_BUILD)
+ if (g_command_buffer_gles_has_atexit_manager) {
+ return;
+ }
+#endif
--g_exit_manager_use_count;
if (g_exit_manager_use_count == 0) {
delete g_exit_manager;
« no previous file with comments | « gpu/command_buffer_gles2_tests_apk.isolate ('k') | gpu/gles2_conform_support/egl/egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698