summaryrefslogtreecommitdiffstats
path: root/driver/rsdRuntimeStubs.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-03-11 15:22:38 -0700
committerJason Sams <jsams@google.com>2015-03-11 15:23:08 -0700
commit0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62 (patch)
treee9300e4eaf2c12acdb593f7b6182cd60f6676593 /driver/rsdRuntimeStubs.cpp
parentd38f6e8c15dbb1f5a507955ab3fd0a1e15b35fca (diff)
downloadandroid_frameworks_rs-0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62.tar.gz
android_frameworks_rs-0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62.tar.bz2
android_frameworks_rs-0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62.zip
Refactor hal loading
This CL make the loading of RS drivers more robust by looking up entry points in place of a structure of entry points. It also adds framework for a version handshake. Change-Id: Iae46bf0171785c0ca1048223816b6efc60c337ad
Diffstat (limited to 'driver/rsdRuntimeStubs.cpp')
-rw-r--r--driver/rsdRuntimeStubs.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/driver/rsdRuntimeStubs.cpp b/driver/rsdRuntimeStubs.cpp
index 1bfbf9f1..d14e6876 100644
--- a/driver/rsdRuntimeStubs.cpp
+++ b/driver/rsdRuntimeStubs.cpp
@@ -24,7 +24,6 @@
#include "rsdCore.h"
#include "rsdBcc.h"
-#include "rsdPath.h"
#include "rsdAllocation.h"
#include "rsdShaderCache.h"
#include "rsdVertexArray.h"
@@ -465,11 +464,6 @@ static void SC_DrawRect(float x1, float y1, float x2, float y2, float z) {
SC_DrawQuad(x1, y2, z, x2, y2, z, x2, y1, z, x1, y1, z);
}
-static void SC_DrawPath(Path *p) {
- Context *rsc = RsdCpuReference::getTlsContext();
- rsdPathDraw(rsc, p);
-}
-
static void SC_DrawMesh(Mesh *m) {
Context *rsc = RsdCpuReference::getTlsContext();
rsrDrawMesh(rsc, m);
@@ -1492,8 +1486,6 @@ static RsdCpuReference::CpuSymbol gSyms[] = {
{ "_Z11rsgDrawMesh7rs_meshjjj", (void *)&SC_DrawMeshPrimitiveRange, false },
{ "_Z25rsgMeshComputeBoundingBox7rs_meshPfS0_S0_S0_S0_S0_", (void *)&SC_MeshComputeBoundingBox, false },
- { "_Z11rsgDrawPath7rs_path", (void *)&SC_DrawPath, false },
-
{ "_Z13rsgClearColorffff", (void *)&SC_ClearColor, false },
{ "_Z13rsgClearDepthf", (void *)&SC_ClearDepth, false },
@@ -1694,10 +1686,6 @@ void rsgMeshComputeBoundingBox(::rs_mesh mesh,
maxX, maxY, maxZ);
}
-void rsgDrawPath(::rs_path p) {
- return SC_DrawPath((Path *) p.p);
-}
-
void rsgClearColor(float r, float g, float b, float a) {
return SC_ClearColor(r, g, b, a);
}