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

Commit 1af7258c authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22695 into eclair

* changes:
  Remove bogus comments and logging.
parents cc907741 67c6844e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
    public void surfaceCreated(SurfaceHolder holder) {
        Log.v(RenderScript.LOG_TAG, "surfaceCreated");
        mSurfaceHolder = holder;
        //mGLThread.surfaceCreated();
    }

    /**
@@ -81,7 +80,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
    public void surfaceDestroyed(SurfaceHolder holder) {
        // Surface will be destroyed when we return
        Log.v(RenderScript.LOG_TAG, "surfaceDestroyed");
        //mGLThread.surfaceDestroyed();
    }

    /**
@@ -90,8 +88,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
     */
    public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
        Log.v(RenderScript.LOG_TAG, "surfaceChanged");

        //mGLThread.onWindowResize(w, h);
    }

    /**
@@ -102,7 +98,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
     */
    public void onPause() {
        Log.v(RenderScript.LOG_TAG, "onPause");
        //mGLThread.onPause();
    }

    /**
@@ -114,7 +109,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
     */
    public void onResume() {
        Log.v(RenderScript.LOG_TAG, "onResume");
        //mGLThread.onResume();
    }

    /**
@@ -125,7 +119,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
     */
    public void queueEvent(Runnable r) {
        Log.v(RenderScript.LOG_TAG, "queueEvent");
        //mGLThread.queueEvent(r);
    }

    /**
@@ -136,7 +129,6 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback
    @Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        //mGLThread.requestExitAndWait();
    }

    // ----------------------------------------------------------------------
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ int main(int launchID) {
    float height = getHeight();

    if (rate) {
        debugI32("rate", rate);
        int *dataI = loadArrayI32(1, 0);
        float rMax = ((float)rate) * 0.005f;
        int x = Control_x;
+9 −11
Original line number Diff line number Diff line
@@ -76,18 +76,17 @@ void Context::initEGL()
    mGL.mRenderer = glGetString(GL_RENDERER);
    mGL.mExtensions = glGetString(GL_EXTENSIONS);

    LOGV("EGL Version %i %i", mEGL.mMajorVersion, mEGL.mMinorVersion);
    LOGV("GL Version %s", mGL.mVersion);
    LOGV("GL Vendor %s", mGL.mVendor);
    LOGV("GL Renderer %s", mGL.mRenderer);
    LOGV("GL Extensions %s", mGL.mExtensions);
    //LOGV("EGL Version %i %i", mEGL.mMajorVersion, mEGL.mMinorVersion);
    //LOGV("GL Version %s", mGL.mVersion);
    //LOGV("GL Vendor %s", mGL.mVendor);
    //LOGV("GL Renderer %s", mGL.mRenderer);
    //LOGV("GL Extensions %s", mGL.mExtensions);

    if (memcmp(mGL.mVersion, "OpenGL ES-CM", 12)) {
    if ((strlen((const char *)mGL.mVersion) < 12) || memcmp(mGL.mVersion, "OpenGL ES-CM", 12)) {
        LOGE("Error, OpenGL ES Lite not supported");
    }
    } else {
        sscanf((const char *)mGL.mVersion + 13, "%i.%i", &mGL.mMajorVersion, &mGL.mMinorVersion);


    }
}

bool Context::runScript(Script *s, uint32_t launchID)
@@ -115,7 +114,6 @@ bool Context::runRootScript()
    //glColor4f(1,1,1,1);
    //glEnable(GL_LIGHT0);
    glViewport(0, 0, mEGL.mWidth, mEGL.mHeight);
#if 1
    glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);

    glClearColor(mRootScript->mEnviroment.mClearColor[0],
@@ -129,7 +127,7 @@ bool Context::runRootScript()
    } else {
        glClear(GL_COLOR_BUFFER_BIT);
    }
#endif

#if RS_LOG_TIMES
    timerSet(RS_TIMER_SCRIPT);
#endif
+2 −2
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ void ScriptCState::appendTypes(String8 *str)
                tmp.append(c->getComponentName());
                sprintf(buf, " %i\n", ct2);
                tmp.append(buf);
                LOGD(tmp);
                //LOGD(tmp);
                str->append(tmp);
            }
        }
@@ -295,7 +295,7 @@ void ScriptCState::appendTypes(String8 *str)
                sprintf(buf, "%i, %i)\n", ct, ct2);
                tmp.append(buf);

                LOGD(tmp);
                //LOGD(tmp);
                str->append(tmp);
            }
        }