Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show First 20 Lines • Show All 473 Lines • ▼ Show 20 Line(s) | |||||
474 | OutlineVisual *Platform::createOutline(Outline *outline) | 474 | OutlineVisual *Platform::createOutline(Outline *outline) | ||
475 | { | 475 | { | ||
476 | if (Compositor::compositing()) { | 476 | if (Compositor::compositing()) { | ||
477 | return new CompositedOutlineVisual(outline); | 477 | return new CompositedOutlineVisual(outline); | ||
478 | } | 478 | } | ||
479 | return nullptr; | 479 | return nullptr; | ||
480 | } | 480 | } | ||
481 | 481 | | |||
482 | Decoration::Renderer *Platform::createDecorationRenderer(Decoration::DecoratedClientImpl *client) | ||||
483 | { | ||||
484 | if (Compositor::self()->hasScene()) { | ||||
485 | Compositor::self()->scene()->createDecorationRenderer(client); | ||||
486 | } | ||||
487 | return nullptr; | ||||
488 | } | ||||
489 | | ||||
482 | } | 490 | } |