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

Unified Diff: ui/ozone/platform/egltest/eglplatform_shim_xeleven.cc

Issue 2167243002: Delete Ozone egltest platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « ui/ozone/platform/egltest/eglplatform_shim.h ('k') | ui/ozone/platform/egltest/egltest.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/egltest/eglplatform_shim_xeleven.cc
diff --git a/ui/ozone/platform/egltest/eglplatform_shim_xeleven.cc b/ui/ozone/platform/egltest/eglplatform_shim_xeleven.cc
deleted file mode 100644
index c7e008086192c6931d3bbc8352aff15ae53f7f70..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/egltest/eglplatform_shim_xeleven.cc
+++ /dev/null
@@ -1,106 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/ozone/platform/egltest/eglplatform_shim.h"
-
-#include <string.h>
-#include <X11/Xlib.h>
-#include <X11/Xatom.h>
-#include <X11/Xutil.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-Display* g_display;
-
-const int kDefaultX = 0;
-const int kDefaultY = 0;
-const int kDefaultWidth = 1280;
-const int kDefaultHeight = 720;
-const int kDefaultBorderWidth = 0;
-
-const char* ShimQueryString(int name) {
- switch (name) {
- case SHIM_EGL_LIBRARY:
- return "libEGL.so.1";
- case SHIM_GLES_LIBRARY:
- return "libGLESv2.so.2";
- default:
- return NULL;
- }
-}
-
-bool ShimInitialize(void) {
- g_display = XOpenDisplay(NULL);
- return g_display != NULL;
-}
-
-bool ShimTerminate(void) {
- XCloseDisplay(g_display);
- return true;
-}
-
-ShimNativeWindowId ShimCreateWindow(void) {
- XSetWindowAttributes swa;
- memset(&swa, 0, sizeof(swa));
- swa.event_mask = 0;
-
- Window window = XCreateWindow(g_display,
- DefaultRootWindow(g_display),
- kDefaultX,
- kDefaultY,
- kDefaultWidth,
- kDefaultHeight,
- kDefaultBorderWidth,
- CopyFromParent,
- InputOutput,
- CopyFromParent,
- CWEventMask,
- &swa);
-
- XMapWindow(g_display, window);
- XStoreName(g_display, window, "EGL test");
- XFlush(g_display);
-
- return window;
-}
-
-bool ShimQueryWindow(ShimNativeWindowId window_id, int attribute, int* value) {
- XWindowAttributes window_attributes;
- switch (attribute) {
- case SHIM_WINDOW_WIDTH:
- XGetWindowAttributes(g_display, window_id, &window_attributes);
- *value = window_attributes.width;
- return true;
- case SHIM_WINDOW_HEIGHT:
- XGetWindowAttributes(g_display, window_id, &window_attributes);
- *value = window_attributes.height;
- return true;
- default:
- return false;
- }
-}
-
-bool ShimDestroyWindow(ShimNativeWindowId window_id) {
- XDestroyWindow(g_display, window_id);
- return true;
-}
-
-ShimEGLNativeDisplayType ShimGetNativeDisplay(void) {
- return reinterpret_cast<ShimEGLNativeDisplayType>(g_display);
-}
-
-ShimEGLNativeWindowType ShimGetNativeWindow(
- ShimNativeWindowId native_window_id) {
- return native_window_id;
-}
-
-bool ShimReleaseNativeWindow(ShimEGLNativeWindowType native_window) {
- return true;
-}
-
-#ifdef __cplusplus
-}
-#endif
« no previous file with comments | « ui/ozone/platform/egltest/eglplatform_shim.h ('k') | ui/ozone/platform/egltest/egltest.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698