diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerContent.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/LayerContent.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerContent.h b/Source/WebCore/platform/graphics/android/LayerContent.h index 32108ec..97bc32a 100644 --- a/Source/WebCore/platform/graphics/android/LayerContent.h +++ b/Source/WebCore/platform/graphics/android/LayerContent.h @@ -27,6 +27,7 @@ #define LayerContent_h #include "SkRefCnt.h" +#include <utils/threads.h> class SkCanvas; class SkPicture; @@ -44,6 +45,10 @@ public: virtual void draw(SkCanvas* canvas) = 0; virtual void serialize(SkWStream* stream) = 0; + +protected: + // used to prevent parallel draws, as both SkPicture and PictureSet don't support them + android::Mutex m_drawLock; }; } // WebCore |