Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb0628d9 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

remove copybit hack from software opengl (libagl)

h/w acceleration is not supported through software gl + copybit anylonger,
instead, h/w opengl must be used. in the system compositor, a new h/w
composition api will be introduced to allow h/w accelerated composition with
overlays and/or 2D blocks.

Change-Id: I04949cb074ba8c4d637319ace23497c16a58d5bf
parent 3a8e497f
Loading
Loading
Loading
Loading
+0 −10
Original line number Original line Diff line number Diff line
@@ -6,9 +6,6 @@ LOCAL_PATH:= $(call my-dir)


include $(CLEAR_VARS)
include $(CLEAR_VARS)


# Set to 1 to use gralloc and copybits
LIBAGL_USE_GRALLOC_COPYBITS := 1

LOCAL_SRC_FILES:= \
LOCAL_SRC_FILES:= \
	egl.cpp                     \
	egl.cpp                     \
	state.cpp		            \
	state.cpp		            \
@@ -51,13 +48,6 @@ ifneq ($(TARGET_SIMULATOR),true)
    LOCAL_C_INCLUDES += bionic/libc/private
    LOCAL_C_INCLUDES += bionic/libc/private
endif
endif


ifeq ($(LIBAGL_USE_GRALLOC_COPYBITS),1)
    LOCAL_CFLAGS += -DLIBAGL_USE_GRALLOC_COPYBITS
    LOCAL_SRC_FILES += copybit.cpp
    LOCAL_SHARED_LIBRARIES += libui
endif


LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
LOCAL_MODULE:= libGLES_android
LOCAL_MODULE:= libGLES_android


+0 −3
Original line number Original line Diff line number Diff line
@@ -55,9 +55,6 @@ void EGLTextureObject::init()
    memset(crop_rect, 0, sizeof(crop_rect));
    memset(crop_rect, 0, sizeof(crop_rect));
    generate_mipmap = GL_FALSE;
    generate_mipmap = GL_FALSE;
    direct = GL_FALSE;
    direct = GL_FALSE;
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
    try_copybit = false;
#endif // LIBAGL_USE_GRALLOC_COPYBITS
    buffer = 0;
    buffer = 0;
}
}


+0 −3
Original line number Original line Diff line number Diff line
@@ -80,9 +80,6 @@ public:
    GLint               crop_rect[4];
    GLint               crop_rect[4];
    GLint               generate_mipmap;
    GLint               generate_mipmap;
    GLint               direct;
    GLint               direct;
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
    bool                try_copybit;
#endif // LIBAGL_USE_GRALLOC_COPYBITS
    android_native_buffer_t* buffer;
    android_native_buffer_t* buffer;
};
};


+0 −9
Original line number Original line Diff line number Diff line
@@ -26,9 +26,6 @@
#include "primitives.h"
#include "primitives.h"
#include "texture.h"
#include "texture.h"
#include "BufferObjectManager.h"
#include "BufferObjectManager.h"
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
#include "copybit.h"
#endif // LIBAGL_USE_GRALLOC_COPYBITS


// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------


@@ -707,12 +704,6 @@ void drawPrimitivesTriangleStrip(ogles_context_t* c,


void drawPrimitivesTriangleFan(ogles_context_t* c,
void drawPrimitivesTriangleFan(ogles_context_t* c,
        GLint first, GLsizei count) {
        GLint first, GLsizei count) {
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
    if (drawTriangleFanWithCopybit(c, first, count)) {
        return;
    }
#endif // LIBAGL_USE_GRALLOC_COPYBITS

    drawPrimitivesTriangleFanOrStrip(c, first, count, 2);
    drawPrimitivesTriangleFanOrStrip(c, first, count, 2);
}
}


opengl/libagl/copybit.cpp

deleted100644 → 0
+0 −618

File deleted.

Preview size limit exceeded, changes collapsed.

Loading