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

Commit 1ad3cd57 authored by nicolasroard's avatar nicolasroard
Browse files

Fixes some state synchronization issues

Change-Id: Iea0f2b8d9c885795bddfb0d3001c8a351caed63c
parent ad420275
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -105,12 +105,6 @@ public class FilteringPipeline implements Handler.Callback {
            case COMPUTE_RENDERING_REQUEST:
            case COMPUTE_PARTIAL_RENDERING_REQUEST:
            case COMPUTE_HIGHRES_RENDERING_REQUEST: {
                if (msg.what == COMPUTE_PARTIAL_RENDERING_REQUEST
                        || msg.what == COMPUTE_HIGHRES_RENDERING_REQUEST) {
                    if (mProcessingHandler.hasMessages(msg.what)) {
                        return false;
                    }
                }

                if (DEBUG) {
                    Log.v(LOGTAG, "Compute Request: " + getType(msg.what));
@@ -168,6 +162,9 @@ public class FilteringPipeline implements Handler.Callback {
        msg.obj = request;
        if (type == COMPUTE_PARTIAL_RENDERING_REQUEST
                || type == COMPUTE_HIGHRES_RENDERING_REQUEST) {
            if (mProcessingHandler.hasMessages(msg.what)) {
                mProcessingHandler.removeMessages(msg.what);
            }
            mProcessingHandler.sendMessageDelayed(msg, HIRES_DELAY);
        } else {
            mProcessingHandler.sendMessage(msg);
+2 −1
Original line number Diff line number Diff line
@@ -63,7 +63,8 @@ public class FilterRepresentation implements Cloneable {
        representation.setShowEditingControls(showEditingControls());
        representation.setShowParameterValue(showParameterValue());
        representation.setShowUtilityPanel(showUtilityPanel());
        representation.mTempRepresentation = null;
        representation.mTempRepresentation =
                mTempRepresentation != null ? mTempRepresentation.clone() : null;
        if (DEBUG) {
            Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">");
        }