Bug 60180
Summary: | Including RenderLayerCompositor.h with USE(ACCELERATED_COMPOSITING) disabled causes compilation error. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jer Noble <jer.noble> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | REOPENED | ||
Severity: | Normal | CC: | simon.fraser |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | OS X 10.6 |
Jer Noble
RenderLayerCompositor inherits from GraphicsLayerClient, the definition of which is wrapped in a USE(ACCELERATED_COMPOSITING) conditional. If RenderLayerCompositor is truly dependent on a class which is only available when that flag is enabled, the RenderLayerCompositor should be wrapped in a USE(ACCELERATED_COMPOSITING) conditional as well.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
RenderLayerCompositor.h should be included within guards. That's what we do everywhere.
#if USE(ACCELERATED_COMPOSITING)
#include "RenderLayerCompositor.h"
#endif
Simon Fraser (smfr)
Seems OK to wrap the header contents in guards.