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

Commit 56cb2d26 authored by Mike Reed's avatar Mike Reed
Browse files

opt into public SkM44

Landing this allows Skia to remove include/private/SkM44.h

Test: make

Change-Id: I05881e6ae7844231a6f092aaf67c14ca46244b0f
parent 9c84793f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ struct Concat44 final : Op {
    static const auto kType = Type::Concat44;
    Concat44(const SkScalar m[16]) { memcpy(colMajor, m, sizeof(colMajor)); }
    SkScalar colMajor[16];
    void draw(SkCanvas* c, const SkMatrix&) const { c->experimental_concat44(colMajor); }
    void draw(SkCanvas* c, const SkMatrix&) const { c->concat44(colMajor); }
};
struct Concat final : Op {
    static const auto kType = Type::Concat;
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
#include "SkAndroidFrameworkUtils.h"
#include "SkClipStack.h"
#include "SkRect.h"
#include "include/private/SkM44.h"
#include "SkM44.h"

namespace android {
namespace uirenderer {
@@ -93,7 +93,7 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {

    SkIRect surfaceBounds = canvas->internal_private_getTopLayerBounds();
    SkIRect clipBounds = canvas->getDeviceClipBounds();
    SkM44 mat4(canvas->experimental_getLocalToDevice());
    SkM44 mat4(canvas->getLocalToDevice());
    SkRegion clipRegion;
    canvas->temporary_internal_getRgnClip(&clipRegion);

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
#include <GrBackendDrawableInfo.h>
#include <SkAndroidFrameworkUtils.h>
#include <SkImage.h>
#include "include/private/SkM44.h"
#include <SkM44.h>
#include <utils/Color.h>
#include <utils/Trace.h>
#include <utils/TraceUtils.h>
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ void VkInteropFunctorDrawable::onDraw(SkCanvas* canvas) {
        glBindTexture(GL_TEXTURE_2D, 0);

        DrawGlInfo info;
        SkM44 mat4(canvas->experimental_getLocalToDevice());
        SkM44 mat4(canvas->getLocalToDevice());
        SkIRect clipBounds = canvas->getDeviceClipBounds();

        info.clipLeft = clipBounds.fLeft;