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

Commit dd08224e authored by Bo Hu's avatar Bo Hu
Browse files

Revert "Make HWUI's surface Reliable^TM"

This reverts commit 650bd9a7.

Reason for revert: broken emulator b/120342364

Exempt-From-Owner-Approval:

Change-Id: If05d9d87325e1d836375d7dc79ff66ef057d228d
parent 298c49e4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -179,7 +179,6 @@ cc_defaults {
        "renderthread/CanvasContext.cpp",
        "renderthread/DrawFrameTask.cpp",
        "renderthread/EglManager.cpp",
        "renderthread/ReliableSurface.cpp",
        "renderthread/VulkanManager.cpp",
        "renderthread/RenderProxy.cpp",
        "renderthread/RenderTask.cpp",
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ void SkiaOpenGLPipeline::onStop() {
    }
}

bool SkiaOpenGLPipeline::setSurface(ANativeWindow* surface, SwapBehavior swapBehavior,
bool SkiaOpenGLPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior,
                                    ColorMode colorMode) {
    if (mEglSurface != EGL_NO_SURFACE) {
        mEglManager.destroySurface(mEglSurface);
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ public:
    bool swapBuffers(const renderthread::Frame& frame, bool drew, const SkRect& screenDirty,
                     FrameInfo* currentFrameInfo, bool* requireSwap) override;
    DeferredLayerUpdater* createTextureLayer() override;
    bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior,
    bool setSurface(Surface* window, renderthread::SwapBehavior swapBehavior,
                    renderthread::ColorMode colorMode) override;
    void onStop() override;
    bool isSurfaceReady() override;
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ DeferredLayerUpdater* SkiaVulkanPipeline::createTextureLayer() {

void SkiaVulkanPipeline::onStop() {}

bool SkiaVulkanPipeline::setSurface(ANativeWindow* surface, SwapBehavior swapBehavior,
bool SkiaVulkanPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior,
                                    ColorMode colorMode) {
    if (mVkSurface) {
        mVkManager.destroySurface(mVkSurface);
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public:
    bool swapBuffers(const renderthread::Frame& frame, bool drew, const SkRect& screenDirty,
                     FrameInfo* currentFrameInfo, bool* requireSwap) override;
    DeferredLayerUpdater* createTextureLayer() override;
    bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior,
    bool setSurface(Surface* window, renderthread::SwapBehavior swapBehavior,
                    renderthread::ColorMode colorMode) override;
    void onStop() override;
    bool isSurfaceReady() override;
Loading