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

Commit 220c3f4f authored by Andreas Gampe's avatar Andreas Gampe Committed by Android (Google) Code Review
Browse files

Merge "resolved conflicts for merge of 99377df1 to lmp-mr1-dev-plus-aosp" into...

Merge "resolved conflicts for merge of 99377df1 to lmp-mr1-dev-plus-aosp" into lmp-mr1-dev-plus-aosp
parents 79ef5ef7 2ab8298d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -6,8 +6,6 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
# getConfig in external/skia/include/core/SkBitmap.h is deprecated.
# Allow Gnu extension: in-class initializer of static 'const float' member.
LOCAL_CLANG_CFLAGS += \
    -Wno-unused-parameter \
    -Wno-deprecated-declarations \
    -Wno-gnu-static-float-init

# Only build libhwui when USE_OPENGL_RENDERER is
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ void AnimationContext::addAnimationHandle(AnimationHandle* handle) {
    handle->insertAfter(&mNextFrameAnimations);
}

void AnimationContext::startFrame(TreeInfo::TraversalMode mode) {
void AnimationContext::startFrame(TreeInfo::TraversalMode /* mode */) {
    LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle,
            "Missed running animations last frame!");
    AnimationHandle* head = mNextFrameAnimations.mNextHandle;
+4 −4
Original line number Diff line number Diff line
@@ -245,11 +245,11 @@ CanvasPropertyPrimitiveAnimator::CanvasPropertyPrimitiveAnimator(
        , mProperty(property) {
}

float CanvasPropertyPrimitiveAnimator::getValue(RenderNode* target) const {
float CanvasPropertyPrimitiveAnimator::getValue(RenderNode* /* target */) const {
    return mProperty->value;
}

void CanvasPropertyPrimitiveAnimator::setValue(RenderNode* target, float value) {
void CanvasPropertyPrimitiveAnimator::setValue(RenderNode* /* target */, float value) {
    mProperty->value = value;
}

@@ -268,7 +268,7 @@ CanvasPropertyPaintAnimator::CanvasPropertyPaintAnimator(
        , mField(field) {
}

float CanvasPropertyPaintAnimator::getValue(RenderNode* target) const {
float CanvasPropertyPaintAnimator::getValue(RenderNode* /* target */) const {
    switch (mField) {
    case STROKE_WIDTH:
        return mProperty->value.getStrokeWidth();
@@ -284,7 +284,7 @@ static uint8_t to_uint8(float value) {
    return static_cast<uint8_t>( c < 0 ? 0 : c > 255 ? 255 : c );
}

void CanvasPropertyPaintAnimator::setValue(RenderNode* target, float value) {
void CanvasPropertyPaintAnimator::setValue(RenderNode* /* target */, float value) {
    switch (mField) {
    case STROKE_WIDTH:
        mProperty->value.setStrokeWidth(value);
+5 −5
Original line number Diff line number Diff line
@@ -384,13 +384,13 @@ private:

    bool bindIndicesBufferInternal(const GLuint buffer);

    static void eventMarkNull(GLsizei length, const GLchar* marker) { }
    static void startMarkNull(GLsizei length, const GLchar* marker) { }
    static void eventMarkNull(GLsizei /* length */, const GLchar* /* marker */) { }
    static void startMarkNull(GLsizei /* length */, const GLchar* /* marker */) { }
    static void endMarkNull() { }

    static void setLabelNull(GLenum type, uint object, GLsizei length,
            const char* label) { }
    static void getLabelNull(GLenum type, uint object, GLsizei bufferSize,
    static void setLabelNull(GLenum /* type */, uint /* object */, GLsizei /* length */,
            const char* /* label */) { }
    static void getLabelNull(GLenum /* type */, uint /* object */, GLsizei /* bufferSize */,
            GLsizei* length, char* label) {
        if (length) *length = 0;
        if (label) *label = '\0';
+7 −7
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public:
    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) = 0;
    virtual ~Batch() {}
    virtual bool purelyDrawBatch() { return false; }
    virtual bool coversBounds(const Rect& bounds) { return false; }
    virtual bool coversBounds(const Rect& /* bounds */) { return false; }
};

class DrawBatch : public Batch {
@@ -91,7 +91,7 @@ public:
        return false;
    }

    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) {
    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int /* index */) {
        DEFER_LOGD("%d  replaying DrawBatch %p, with %d ops (batch id %x, merge id %p)",
                index, this, mOps.size(), getBatchId(), getMergeId());

@@ -269,7 +269,7 @@ public:
        if (newClipSideFlags & kClipSide_Bottom) mClipRect.bottom = state->mClip.bottom;
    }

    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) {
    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int /* index */) {
        DEFER_LOGD("%d  replaying MergingDrawBatch %p, with %d ops,"
                " clip flags %x (batch id %x, merge id %p)",
                index, this, mOps.size(), mClipSideFlags, getBatchId(), getMergeId());
@@ -313,7 +313,7 @@ public:
    // creates a single operation batch
    StateOpBatch(const StateOp* op, const DeferredDisplayState* state) : mOp(op), mState(state) {}

    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) {
    virtual status_t replay(OpenGLRenderer& renderer, Rect& /* dirty */, int /* index */) {
        DEFER_LOGD("replaying state op batch %p", this);
        renderer.restoreDisplayState(*mState);

@@ -332,10 +332,10 @@ private:

class RestoreToCountBatch : public Batch {
public:
    RestoreToCountBatch(const StateOp* op, const DeferredDisplayState* state, int restoreCount) :
            mState(state), mRestoreCount(restoreCount) {}
    RestoreToCountBatch(const StateOp* /* op */, const DeferredDisplayState* state,
                        int restoreCount) : mState(state), mRestoreCount(restoreCount) {}

    virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) {
    virtual status_t replay(OpenGLRenderer& renderer, Rect& /* dirty */, int /* index */) {
        DEFER_LOGD("batch %p restoring to count %d", this, mRestoreCount);

        renderer.restoreDisplayState(*mState);
Loading