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

Commit ccde199f authored by Mathias Agopian's avatar Mathias Agopian Committed by Jean-Baptiste Queru
Browse files

Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
parent 400f1804
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -40,8 +40,6 @@ public:

    enum { // (keep in sync with Surface.java)
        eHidden             = 0x00000004,
        eGPU                = 0x00000008,
        eHardware           = 0x00000010,
        eDestroyBackbuffer  = 0x00000020,
        eSecure             = 0x00000080,
        eNonPremultiplied   = 0x00000100,
+0 −3
Original line number Diff line number Diff line
@@ -109,9 +109,6 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h,
    if (err) return err;

    uint32_t bufferFlags = 0;
    if (flags & ISurfaceComposer::eGPU)
        bufferFlags |= Buffer::GPU;

    if (flags & ISurfaceComposer::eSecure)
        bufferFlags |= Buffer::SECURE;

+0 −2
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ class Buffer : public SurfaceBuffer
public:
    enum {
        DONT_CLEAR  = 0x00000001,
        GPU         = 0x00000002,
        SECURE      = 0x00000004
    };

@@ -98,7 +97,6 @@ class LayerBitmap
public:
    enum {
        DONT_CLEAR  = Buffer::DONT_CLEAR,
        GPU         = Buffer::GPU,
        SECURE      = Buffer::SECURE
    };
    LayerBitmap();