diff options
Diffstat (limited to 'skia/ext/canvas_paint_x.h')
-rw-r--r-- | skia/ext/canvas_paint_x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/skia/ext/canvas_paint_x.h b/skia/ext/canvas_paint_x.h index e8e3c68..a714a2e 100644 --- a/skia/ext/canvas_paint_x.h +++ b/skia/ext/canvas_paint_x.h @@ -17,6 +17,7 @@ namespace skia { // 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: @@ -88,6 +89,8 @@ class CanvasPaintT : public T { // 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. |