のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

http://tools.oesf.biz/android-7.0.0_r1.0/xref/frameworks/base/libs/hwui/OpenGLRenderer.cpp#609

    174 void OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
    175     if (!opaque) {
    176         mRenderState.scissor().setEnabled(true);
    177         mRenderState.scissor().set(left, getViewportHeight() - bottom, right - left, bottom - top);
    178         glClear(GL_COLOR_BUFFER_BIT);
    179         mDirty = true;
    180         return;
    181     }
    182 
    183     mRenderState.scissor().reset();
    184 }


Cross Reference: /frameworks/base/libs/hwui/LayerRenderer.cpp

     71 void LayerRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
     72     if (mLayer->isDirty()) {
     73         mRenderState.scissor().setEnabled(false);
     74         glClear(GL_COLOR_BUFFER_BIT);
     75 
     76         mRenderState.scissor().reset();
     77         mLayer->setDirty(false);
     78     } else {
     79         OpenGLRenderer::clear(left, top, right, bottom, opaque);
     80     }
     81 }