From 8d4f90aaadf9f3be77d258d2acd67b6186352811 Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Wed, 14 Nov 2018 22:33:24 +0000 Subject: Revert "Bind to FBO when using GPU composition" This reverts commit 8147b0ead81c2d26e38fb4d93bc6d2f499ebd470. Reason for revert: Breaks screenrecord (b/119534075). Change-Id: Iea02806d896ac53c805c27ed745f325456d9a3a4 --- services/surfaceflinger/DisplayDevice.h | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'services/surfaceflinger/DisplayDevice.h') diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h index 560a9588b5..bcd3330cf2 100644 --- a/services/surfaceflinger/DisplayDevice.h +++ b/services/surfaceflinger/DisplayDevice.h @@ -28,14 +28,13 @@ #include #include #include -#include #include #include #include #include #include -#include #include +#include #include #include @@ -147,13 +146,10 @@ public: ui::Dataspace* outDataspace, ui::ColorMode* outMode, ui::RenderIntent* outIntent) const; - // Queues the drawn buffer for consumption by HWC. - void queueBuffer(HWComposer& hwc); - // Allocates a buffer as scratch space for GPU composition - sp dequeueBuffer(); + void swapBuffers(HWComposer& hwc) const; // called after h/w composer has completed its set() call - void onPresentDisplayCompleted(); + void onSwapBuffersCompleted() const; Rect getBounds() const { return Rect(mDisplayWidth, mDisplayHeight); @@ -164,11 +160,6 @@ public: const std::string& getDisplayName() const { return mDisplayName; } bool makeCurrent() const; - // Acquires a new buffer for GPU composition. - void readyNewBuffer(); - // Marks the current buffer has finished, so that it can be presented and - // swapped out. - void finishBuffer(); void setViewportAndProjection() const; const sp& getClientTargetAcquireFence() const; @@ -213,12 +204,7 @@ private: // ANativeWindow this display is rendering into sp mNativeWindow; - // Current buffer that this display can render to. - sp mGraphicBuffer; sp mDisplaySurface; - // File descriptor indicating that mGraphicBuffer is ready for display, i.e. - // that drawing to the buffer is now complete. - base::unique_fd mBufferReady; std::unique_ptr mSurface; int mDisplayWidth; -- cgit v1.2.3-59-g8ed1b