Index: skia/ext/canvas_paint_gtk.h |
=================================================================== |
--- skia/ext/canvas_paint_gtk.h (revision 128476) |
+++ skia/ext/canvas_paint_gtk.h (working copy) |
@@ -18,6 +18,7 @@ |
// A class designed to translate skia painting into a region in a GdkWindow. |
// On construction, it will set up a context for painting into, and on |
// destruction, it will commit it to the GdkWindow. |
+// Note: The created context is always inialized to (0, 0, 0, 0). |
template <class T> |
class CanvasPaintT : public T { |
public: |
@@ -89,6 +90,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. |