Title: [222725] trunk/Source/WebCore
- Revision
- 222725
- Author
- [email protected]
- Date
- 2017-10-02 11:17:51 -0700 (Mon, 02 Oct 2017)
Log Message
GraphicsContext: remove unused ENABLE(3D_TRANSFORMS) && USE(TEXTURE_MAPPER)
https://bugs.webkit.org/show_bug.cgi?id=177757
Reviewed by Michael Catanzaro.
Remove three methods from the GraphicsContext class that were conditioned
with the ENABLE(3D_TRANSFORMS) and USE(TEXTURE_MAPPER) guards. These aren't
used anywhere at this point, but apparently used to be in the TextureMapper
implementation.
* platform/graphics/GraphicsContext.h:
* platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::get3DTransform const): Deleted.
(WebCore::GraphicsContext::concat3DTransform): Deleted.
(WebCore::GraphicsContext::set3DTransform): Deleted.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (222724 => 222725)
--- trunk/Source/WebCore/ChangeLog 2017-10-02 18:15:09 UTC (rev 222724)
+++ trunk/Source/WebCore/ChangeLog 2017-10-02 18:17:51 UTC (rev 222725)
@@ -1,3 +1,21 @@
+2017-10-02 Zan Dobersek <[email protected]>
+
+ GraphicsContext: remove unused ENABLE(3D_TRANSFORMS) && USE(TEXTURE_MAPPER)
+ https://bugs.webkit.org/show_bug.cgi?id=177757
+
+ Reviewed by Michael Catanzaro.
+
+ Remove three methods from the GraphicsContext class that were conditioned
+ with the ENABLE(3D_TRANSFORMS) and USE(TEXTURE_MAPPER) guards. These aren't
+ used anywhere at this point, but apparently used to be in the TextureMapper
+ implementation.
+
+ * platform/graphics/GraphicsContext.h:
+ * platform/graphics/cairo/GraphicsContextCairo.cpp:
+ (WebCore::GraphicsContext::get3DTransform const): Deleted.
+ (WebCore::GraphicsContext::concat3DTransform): Deleted.
+ (WebCore::GraphicsContext::set3DTransform): Deleted.
+
2017-10-02 Gustavo Noronha Silva <[email protected]>
[GLib] NetworkStateNotifier implementation missing
Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (222724 => 222725)
--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h 2017-10-02 18:15:09 UTC (rev 222724)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h 2017-10-02 18:17:51 UTC (rev 222725)
@@ -490,13 +490,6 @@
enum IncludeDeviceScale { DefinitelyIncludeDeviceScale, PossiblyIncludeDeviceScale };
AffineTransform getCTM(IncludeDeviceScale includeScale = PossiblyIncludeDeviceScale) const;
-#if ENABLE(3D_TRANSFORMS) && USE(TEXTURE_MAPPER)
- // This is needed when using accelerated-compositing in software mode, like in TextureMapper.
- void concat3DTransform(const TransformationMatrix&);
- void set3DTransform(const TransformationMatrix&);
- TransformationMatrix get3DTransform() const;
-#endif
-
// This function applies the device scale factor to the context, making the context capable of
// acting as a base-level context for a HiDPI environment.
WEBCORE_EXPORT void applyDeviceScaleFactor(float);
Modified: trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp (222724 => 222725)
--- trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp 2017-10-02 18:15:09 UTC (rev 222724)
+++ trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp 2017-10-02 18:17:51 UTC (rev 222725)
@@ -1208,24 +1208,6 @@
return cairo_surface_get_type(cairo_get_target(platformContext()->cr())) == CAIRO_SURFACE_TYPE_GL;
}
-#if ENABLE(3D_TRANSFORMS) && USE(TEXTURE_MAPPER)
-TransformationMatrix GraphicsContext::get3DTransform() const
-{
- // FIXME: Can we approximate the transformation better than this?
- return getCTM().toTransformationMatrix();
-}
-
-void GraphicsContext::concat3DTransform(const TransformationMatrix& transform)
-{
- concatCTM(transform.toAffineTransform());
-}
-
-void GraphicsContext::set3DTransform(const TransformationMatrix& transform)
-{
- setCTM(transform.toAffineTransform());
-}
-#endif // ENABLE(3D_TRANSFORMS) && USE(TEXTURE_MAPPER)
-
} // namespace WebCore
#endif // USE(CAIRO)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes