Index: skia/ext/canvas_paint_wayland.h |
=================================================================== |
--- skia/ext/canvas_paint_wayland.h (revision 128476) |
+++ skia/ext/canvas_paint_wayland.h (working copy) |
@@ -15,6 +15,7 @@ |
// A class designed to translate skia painting into a region in a Wayland window |
// surface. On construction, it will set up a context for painting into, and on |
// destruction, it will commit it to the Wayland window surface. |
+// Note: The created context is always inialized to (0, 0, 0, 0). |
template <class T> |
class CanvasPaintT : public T { |
public: |
@@ -86,6 +87,8 @@ |
// Cause a deliberate crash; |
CHECK(false); |
} |
+ // No need to clear the canvas, because cairo automatically performs the |
+ // clear. |
// Need to translate so that the dirty region appears at the origin of the |
// surface. |