test_support.cc 967 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "test_support.h"
  5. #include "gpu/gles2_conform_support/egl/display.h"
  6. #include "gpu/gles2_conform_support/egl/thread_state.h"
  7. #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY)
  8. bool g_command_buffer_gles_has_atexit_manager;
  9. #endif
  10. extern "C" {
  11. EGLAPI void EGLAPIENTRY
  12. CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(EGLDisplay dpy,
  13. EGLint width,
  14. EGLint height) {
  15. gles2_conform_support::egl::ThreadState* ts =
  16. gles2_conform_support::egl::ThreadState::Get();
  17. gles2_conform_support::egl::Display* display = ts->GetDisplay(dpy);
  18. if (!display)
  19. return;
  20. display->SetNextCreateWindowSurfaceCreatesPBuffer(width, height);
  21. }
  22. }