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

Commit 8e874bb8 authored by Brian Osman's avatar Brian Osman
Browse files

Make an Android-specific copy of Skia's Null GL interface

This functionality has been removed from Skia, but is still being used
by HWUI's NullGlesDriver for unit tests. Making a local copy gets tests
passing (so that rolling can resume).

Test: hwui_unit_tests still pass
Change-Id: I16b65af58eaeca5a39df89d1542760b652d8b0d5
parent 0097d1ab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ cc_defaults {
        "debug/GlesDriver.cpp",
        "debug/FatalBaseDriver.cpp",
        "debug/NullGlesDriver.cpp",
        "debug/NullSkiaInterface.cpp",
    ],
    include_dirs: ["frameworks/native/opengl/libs/GLES2"],
}
+3 −1
Original line number Diff line number Diff line
@@ -20,8 +20,10 @@ namespace android {
namespace uirenderer {
namespace debug {

extern const GrGLInterface* CreateNullSkiaInterface();

sk_sp<const GrGLInterface> NullGlesDriver::getSkiaInterface() {
    sk_sp<const GrGLInterface> skiaInterface(GrGLCreateNullInterface());
    sk_sp<const GrGLInterface> skiaInterface(CreateNullSkiaInterface());
    return skiaInterface;
}

+852 −0

File added.

Preview size limit exceeded, changes collapsed.