summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-10 22:20:52 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-10 22:20:52 +0000
commitdcc2977772bdd296d8bfbcaedafd4441def78e3d (patch)
treecb0bdc148cff3f5a221b89ad2c055212d58bb976 /gpu
parent404d9a54ceae52b741b3e173af12fb7fd21c8548 (diff)
downloadchromium_src-dcc2977772bdd296d8bfbcaedafd4441def78e3d.zip
chromium_src-dcc2977772bdd296d8bfbcaedafd4441def78e3d.tar.gz
chromium_src-dcc2977772bdd296d8bfbcaedafd4441def78e3d.tar.bz2
Delete the GTK+ port of Chrome.
BUG=297026 R=ben@chromium.org Review URL: https://codereview.chromium.org/231733005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/gles2_conform_support/gles2_conform_support.gyp6
-rw-r--r--gpu/gles2_conform_support/native/egl_native_gtk.cc63
2 files changed, 0 insertions, 69 deletions
diff --git a/gpu/gles2_conform_support/gles2_conform_support.gyp b/gpu/gles2_conform_support/gles2_conform_support.gyp
index d59706e..b2ebe14 100644
--- a/gpu/gles2_conform_support/gles2_conform_support.gyp
+++ b/gpu/gles2_conform_support/gles2_conform_support.gyp
@@ -16,7 +16,6 @@
'bootstrap_sources_native': [
'native/egl_native_aura.cc',
'native/egl_native.cc',
- 'native/egl_native_gtk.cc',
'native/egl_native_x11.cc',
],
}],
@@ -67,11 +66,6 @@
'egl_native',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
- 'conditions': [
- ['toolkit_uses_gtk == 1', {
- 'dependencies': ['../../build/linux/system.gyp:gtk'],
- }],
- ],
'sources': [
'<@(bootstrap_sources_native)',
],
diff --git a/gpu/gles2_conform_support/native/egl_native_gtk.cc b/gpu/gles2_conform_support/native/egl_native_gtk.cc
deleted file mode 100644
index e3ae0cb..0000000
--- a/gpu/gles2_conform_support/native/egl_native_gtk.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2013 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 <EGL/egl.h>
-#include <EGL/eglext.h>
-#include <gdk/gdkx.h>
-#include <gtk/gtk.h>
-
-extern "C" {
-
-#if defined(GLES2_CONFORM_SUPPORT_ONLY)
-#include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
-#else
-#include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h"
-#endif
-
-GTFbool GTFNativeCreateDisplay(EGLNativeDisplayType *pNativeDisplay) {
- int argc = 0;
- char **argv = NULL;
- gtk_init(&argc, &argv);
- *pNativeDisplay = GDK_DISPLAY();;
- return *pNativeDisplay ? GTFtrue : GTFfalse;
-}
-
-void GTFNativeDestroyDisplay(EGLNativeDisplayType nativeDisplay) {
- gtk_exit(0);
-}
-
-void GTFNativeDestroyWindow(EGLNativeDisplayType nativeDisplay,
- EGLNativeWindowType nativeWindow) {
- GdkWindow* window = gdk_window_lookup(nativeWindow);
- gpointer widget = NULL;
- gdk_window_get_user_data(window, &widget);
- gtk_widget_destroy(GTK_WIDGET(widget));
-}
-
-GTFbool GTFNativeCreateWindow(EGLNativeDisplayType nativeDisplay,
- EGLDisplay eglDisplay, EGLConfig eglConfig,
- const char* title, int width, int height,
- EGLNativeWindowType *pNativeWindow) {
-#ifdef CHROMEOS_GLES2_CONFORMANCE
- // Due to the behavior of ChromeOS window manager, which always resize the
- // top level window etc, we had to create a popup window.
- GtkWidget* hwnd = gtk_window_new(GTK_WINDOW_POPUP);
-#else
- GtkWidget* hwnd = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-#endif
-
- gtk_window_set_title(GTK_WINDOW(hwnd), title);
- gtk_window_set_default_size(GTK_WINDOW(hwnd), width, height);
- gtk_widget_set_double_buffered(hwnd, FALSE);
- gtk_widget_set_app_paintable(hwnd, TRUE);
-
- // We had to enter gtk main loop to realize the window on ChromeOS.
- gtk_widget_show_now(hwnd);
-
- *pNativeWindow = GDK_WINDOW_XWINDOW(hwnd->window);
-
- return GTFtrue;
-}
-
-} // extern "C"