Title: [227599] trunk/Source/WebCore
- Revision
- 227599
- Author
- [email protected]
- Date
- 2018-01-25 04:18:36 -0800 (Thu, 25 Jan 2018)
Log Message
[Cairo] Use GraphicsContextImplCairo in Nicosia::PaintingContextCairo
https://bugs.webkit.org/show_bug.cgi?id=182094
Reviewed by Carlos Garcia Campos.
Have Nicosia::PaintingContextCairo create a GraphicsContext object that
utilizes a factory function which returns a freshly-allocated
GraphicsContextImplCairo through which all the painting is then done.
This moves GraphicsLayer painting over to using the GraphicsContextImpl
infrastructure.
No new tests -- no changes in behavior.
* platform/graphics/nicosia/NicosiaPaintingContextCairo.cpp:
(Nicosia::PaintingContextCairo::PaintingContextCairo):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (227598 => 227599)
--- trunk/Source/WebCore/ChangeLog 2018-01-25 10:24:08 UTC (rev 227598)
+++ trunk/Source/WebCore/ChangeLog 2018-01-25 12:18:36 UTC (rev 227599)
@@ -1,3 +1,21 @@
+2018-01-25 Zan Dobersek <[email protected]>
+
+ [Cairo] Use GraphicsContextImplCairo in Nicosia::PaintingContextCairo
+ https://bugs.webkit.org/show_bug.cgi?id=182094
+
+ Reviewed by Carlos Garcia Campos.
+
+ Have Nicosia::PaintingContextCairo create a GraphicsContext object that
+ utilizes a factory function which returns a freshly-allocated
+ GraphicsContextImplCairo through which all the painting is then done.
+ This moves GraphicsLayer painting over to using the GraphicsContextImpl
+ infrastructure.
+
+ No new tests -- no changes in behavior.
+
+ * platform/graphics/nicosia/NicosiaPaintingContextCairo.cpp:
+ (Nicosia::PaintingContextCairo::PaintingContextCairo):
+
2018-01-24 Frederic Wang <[email protected]>
ScrollingStateNode::reconcileLayerPositionForViewportRect is only called on direct children of the root
Modified: trunk/Source/WebCore/platform/graphics/nicosia/NicosiaPaintingContextCairo.cpp (227598 => 227599)
--- trunk/Source/WebCore/platform/graphics/nicosia/NicosiaPaintingContextCairo.cpp 2018-01-25 10:24:08 UTC (rev 227598)
+++ trunk/Source/WebCore/platform/graphics/nicosia/NicosiaPaintingContextCairo.cpp 2018-01-25 12:18:36 UTC (rev 227599)
@@ -32,6 +32,7 @@
#if USE(CAIRO)
#include "GraphicsContext.h"
+#include "GraphicsContextImplCairo.h"
#include "NicosiaBuffer.h"
#include "PlatformContextCairo.h"
#include "RefPtrCairo.h"
@@ -68,7 +69,11 @@
m_cairo.context = adoptRef(cairo_create(m_cairo.surface.get()));
m_platformContext = std::make_unique<WebCore::PlatformContextCairo>(m_cairo.context.get());
- m_graphicsContext = std::make_unique<WebCore::GraphicsContext>(m_platformContext.get());
+ m_graphicsContext = std::make_unique<WebCore::GraphicsContext>(
+ [this](WebCore::GraphicsContext& context)
+ {
+ return std::make_unique<WebCore::GraphicsContextImplCairo>(context, *m_platformContext);
+ });
}
PaintingContextCairo::~PaintingContextCairo()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes