namespace content {
-// Defined in gl_current_context_efl.cc because of conflicts of
-// texture_manager.h with efl GL API wrappers.
-extern GLuint GetTextureIdFromTexture(gpu::TextureBase* texture);
-
RWHVAuraOffscreenHelperEfl::RWHVAuraOffscreenHelperEfl(
RenderWidgetHostViewAura* rwhva,
WebContents* web_contents)
+++ /dev/null
-// Copyright 2014 Samsung Electronics. 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/gl/gl_export.h"
-#include "ui/gl/gl_implementation.h"
-#include "gpu/command_buffer/service/texture_manager.h"
-
-using namespace gl;
-
-extern void* GLGetCurentContext() {
- // Temprorarily load corresponding gl library and shutdown for
- // later correct initialization.
- // Chromium gl system is not initialized yet and evas gl doesn't
- // expose "GetCurrentContext" or "GetNativeContextHandle" API.
- base::NativeLibrary library =
- LoadLibraryAndPrintError("libEGL.so.1");
- typedef EGLContext (*eglGetCurrentContextProc)(void);
-
- eglGetCurrentContextProc proc = reinterpret_cast<eglGetCurrentContextProc>(
- base::GetFunctionPointerFromNativeLibrary(
- library, "eglGetCurrentContext"));
-
- void* handle = proc();
- base::UnloadNativeLibrary(library);
- return handle;
-}
-
-namespace content {
-GL_EXPORT GLuint GetTextureIdFromTexture(gpu::TextureBase* texture) {
- return texture->service_id();
-}
-}
#include "base/threading/thread_restrictions.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
#include "ui/gl/gl_context.h"
+#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_share_group.h"
#include "ui/gl/gpu_timing.h"
-// Defined in gl_current_context_efl.cc because of conflict in chromium
-// and efl gl includes.
-extern void* GLGetCurentContext();
+void* GLGetCurentContext() {
+ // Temprorarily load corresponding gl library and shutdown for
+ // later correct initialization.
+ // Chromium gl system is not initialized yet and evas gl doesn't
+ // expose "GetCurrentContext" or "GetNativeContextHandle" API.
+ base::NativeLibrary library = gl::LoadLibraryAndPrintError("libEGL.so.1");
+ typedef EGLContext (*eglGetCurrentContextProc)(void);
+
+ eglGetCurrentContextProc proc = reinterpret_cast<eglGetCurrentContextProc>(
+ base::GetFunctionPointerFromNativeLibrary(library,
+ "eglGetCurrentContext"));
+
+ void* handle = proc();
+ base::UnloadNativeLibrary(library);
+ return handle;
+}
struct GLSharedContextEflPrivate : public gl::GLContext {
GLSharedContextEflPrivate(Evas_Object* object)
# For //ui/gl target
external_ui_gl_sources = [
- "//tizen_src/chromium_impl/ui/gl/gl_current_context_efl.cc",
"//tizen_src/chromium_impl/ui/gl/gl_shared_context_efl.cc",
"//tizen_src/chromium_impl/ui/gl/gl_shared_context_efl.h",
]