Summary: | [Qt] Fix issues when using the WebView as ShaderEffectSource | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jocelyn Turcotte <jturcotte> | ||||||
Component: | New Bugs | Assignee: | Jocelyn Turcotte <jturcotte> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | hausmann, noam, vestbo | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | 83591 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Jocelyn Turcotte
2012-04-10 09:36:16 PDT
Created attachment 136480 [details]
Patch
Comment on attachment 136480 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136480&action=review > Source/WebCore/platform/graphics/texmap/TextureMapper.h:126 > + virtual void beginPainting(bool mirrored = false) { } Boolean trap. Let's make it an enum. > Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:500 > +static inline TransformationMatrix createProjectionMatrix(const IntSize& size, bool mirrored) While we're at it, let's make this an enum (probably the same enum). Created attachment 136495 [details]
Patch
Using PaintingFlag instead of a mirrored bool.
It felt a bit stretched to use the generic flag in the createProjectionMatrix static method so I leaved it as before but used const bools for the mirrored parameter in callers.
Comment on attachment 136495 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136495&action=review > Source/WebCore/platform/graphics/texmap/TextureMapper.h:107 > + enum PaintingFlag { > + PaintingMirrored = 1 << 0, PaintFlag(s) Committed r113859: <http://trac.webkit.org/changeset/113859> |