~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to src/platforms/android/display_device.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Daniel van Vugt
  • Date: 2015-02-09 21:27:35 UTC
  • mfrom: (1.1.82)
  • Revision ID: package-import@ubuntu.com-20150209212735-ps50oc86ck6o1btu
Tags: 0.11.0+15.04.20150209.1-0ubuntu1
[ Daniel van Vugt ]
* New upstream release 0.11.0 (https://launchpad.net/mir/+milestone/0.11.0)
  - Enhancements:
    . Lots more major plumbing in the Android code, on the path to
      supporting external displays.
    . Add support for clang 3.6.
    . Major redesign of server classes in mir::shell,scene and friends
      (still in progress).
    . Added client API for creating dialogs and tooltips.
    . Added new surface states: mir_surface_state_hidden and
      mir_surface_state_horizmaximized.
    . Performance: Use optimally efficient fragment shading when possible.
    . Performance: (Desktop) Composite using double buffering instead of
      triple to reduce visible lag.
    . mir_proving_server: Can now resize windows from any edge or corner
      using the existing Alt+middlebuttondrag.
    . mir_proving_server: Added some demo custom shaders (negative and
      high contrast modes: Super+N/C).
    . mir_proving_server: Can now close clients politely via Alt+F4.
    . Added MirPointerInputEvent (part of the new input API, the old
      MirMotionEvent is still supported also for now).
  - ABI summary: Servers need rebuilding, but clients do not;
    . Mirclient ABI unchanged at 8
    . Mircommon ABI unchanged at 3
    . Mirplatform ABI bumped to 6
    . Mirserver ABI bumped to 29
  - Bug fixes:
    . [regression] mir_demo_server exits immediately with boost
      bad_any_cast exception (LP: #1414630)
    . need way to position menus and tooltips (relative positioning to
      parent) (LP: #1324101)
    . GLibMainLoopTest failure seen in CI (LP: #1413748)
    . Clang builds fail in CI (LP: #1416317)
    . segfault in mir::compositor::GLProgramFamily::Shader::init()
      (LP: #1416482)
    . GLRenderer: The default fragment shader is sub-optimal for alpha=1.0
      (LP: #1350674)
    . mesa::DisplayBuffer::post_update is triple buffered - more laggy than
      it needs to be (LP: #1350725)
    . Cannot connect to nested server when started from a differen vt
      (LP: #1379266)
    . [testfail] AsioMainLoopAlarmTest fails in CI (LP: #1392256)
    . Compositor report inconsistently reports frame time during bypass,
      and render time otherwise (LP: #1408906)
    . [regression] mir_demo_client_fingerpaint doesn't paint anything any
      more (with the mouse) (LP: #1413139)
    . Hardware cursor is always slightly ahead of the composited image
      (LP: #1274408)
    . integration tests are outputting (too many) DisplayServer log
      messages (LP: #1408231)
    . [regression] deploy-and-test.sh doesn't work any more (unless you
      have umockdev installed already) (LP: #1413479)
    . Color Inverse on display. Toggle Negative Image (LP: #1400580)
    . mir-ubuntu-vivid-armhf-ci fails consistently (LP: #1407863)
    . Double-buffered surfaces may lag or freeze if event driven and not
      constantly redrawing (LP: #1395581)
    . Pointer motion and crossing events are missing (LP: #1417650)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2013 Canonical Ltd.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify
5
 
 * it under the terms of the GNU Lesser General Public License version 3 as
6
 
 * published by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU Lesser General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17
 
 */
18
 
 
19
 
#ifndef MIR_GRAPHICS_ANDROID_DISPLAY_SUPPORT_PROVIDER_H_
20
 
#define MIR_GRAPHICS_ANDROID_DISPLAY_SUPPORT_PROVIDER_H_
21
 
 
22
 
#include "mir/graphics/renderable.h"
23
 
#include "mir_toolkit/common.h"
24
 
#include <EGL/egl.h>
25
 
 
26
 
namespace mir
27
 
{
28
 
namespace graphics
29
 
{
30
 
class Buffer;
31
 
class Renderable;
32
 
 
33
 
namespace android
34
 
{
35
 
class RenderableListCompositor;
36
 
class SwappingGLContext;
37
 
 
38
 
class DisplayDevice
39
 
{
40
 
public:
41
 
    virtual ~DisplayDevice() = default;
42
 
 
43
 
    virtual void post_gl(SwappingGLContext const& context) = 0;
44
 
    /* \returns true if the DisplayDevice can support the renderlist
45
 
                false if the display device cannot support drawing the given renderlist.
46
 
    */
47
 
    virtual bool post_overlays(
48
 
        SwappingGLContext const& context,
49
 
        RenderableList const& list,
50
 
        RenderableListCompositor const& list_compositor) = 0;
51
 
 
52
 
    //TODO: remove the following from this interface
53
 
    virtual void mode(MirPowerMode mode) = 0;
54
 
 
55
 
protected:
56
 
    DisplayDevice() = default;
57
 
    DisplayDevice& operator=(DisplayDevice const&) = delete;
58
 
    DisplayDevice(DisplayDevice const&) = delete;
59
 
};
60
 
 
61
 
}
62
 
}
63
 
}
64
 
 
65
 
#endif /* MIR_GRAPHICS_ANDROID_DISPLAY_SUPPORT_PROVIDER_H_ */