~alan-griffiths/mir/dont-trace-forks

« back to all changes in this revision

Viewing changes to src/server/compositor/gl_renderer_factory.cpp

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2015-05-18 21:30:28 UTC
  • mfrom: (2456.3.14 consistent-alpha-usage)
  • Revision ID: tarmac-20150518213028-8f4nffe8pc9v7ape
Reduce coupling and simplify: Remove DisplayBuffer::uses_alpha() and
switch back to a trivial colour mask for all targets.

Approved by Kevin DuBois, Alan Griffiths, Alberto Aguirre, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
namespace geom = mir::geometry;
25
25
 
26
26
std::unique_ptr<mc::Renderer>
27
 
mc::GLRendererFactory::create_renderer_for(geom::Rectangle const& rect,
28
 
        DestinationAlpha dest_alpha)
 
27
mc::GLRendererFactory::create_renderer_for(geom::Rectangle const& rect)
29
28
{
30
 
    return std::make_unique<GLRenderer>(rect, dest_alpha);
 
29
    return std::make_unique<GLRenderer>(rect);
31
30
}