diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppb_graphics_2d_impl.h')
-rw-r--r-- | webkit/plugins/ppapi/ppb_graphics_2d_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h index fc36f18..f100f67 100644 --- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h +++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h @@ -8,6 +8,7 @@ #include <vector> #include "base/basictypes.h" +#include "base/memory/weak_ptr.h" #include "ppapi/c/pp_completion_callback.h" #include "ppapi/c/ppb_graphics_2d.h" #include "ppapi/shared_impl/resource.h" @@ -174,6 +175,8 @@ class PPB_Graphics2D_Impl : public ::ppapi::Resource, // This allows us to do more optimized painting in some cases. bool is_always_opaque_; + base::WeakPtrFactory<PPB_Graphics2D_Impl> weak_ptr_factory_; + DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Impl); }; |