| Index: android_webview/common/renderer_picture_map.h
|
| diff --git a/android_webview/common/renderer_picture_map.h b/android_webview/common/renderer_picture_map.h
|
| index 5129129e1434badd354d7b9115ac5719b8122556..5e0229d23abd69d0397af32aa94371574b3e822f 100644
|
| --- a/android_webview/common/renderer_picture_map.h
|
| +++ b/android_webview/common/renderer_picture_map.h
|
| @@ -7,28 +7,28 @@
|
|
|
| #include <map>
|
|
|
| -#include "base/memory/ref_counted.h"
|
| #include "base/synchronization/lock.h"
|
| -#include "cc/picture_pile_impl.h"
|
| +#include "skia/ext/refptr.h"
|
| +#include "third_party/skia/include/core/SkPicture.h"
|
|
|
| namespace android_webview {
|
|
|
| -// Stores picture piles received from diferent renderers and associates them by
|
| +// Stores pictures received from diferent renderers and associates them by
|
| // renderer id. Will only work in single process mode.
|
| class RendererPictureMap {
|
| public:
|
| static void CreateInstance();
|
| static RendererPictureMap* GetInstance();
|
|
|
| - scoped_refptr<cc::PicturePileImpl> GetRendererPicture(int id);
|
| - void SetRendererPicture(int id, scoped_refptr<cc::PicturePileImpl> picture);
|
| + skia::RefPtr<SkPicture> GetRendererPicture(int id);
|
| + void SetRendererPicture(int id, skia::RefPtr<SkPicture> picture);
|
| void ClearRendererPicture(int id);
|
|
|
| private:
|
| RendererPictureMap();
|
| ~RendererPictureMap();
|
|
|
| - typedef std::map<int, scoped_refptr<cc::PicturePileImpl> > PictureMap;
|
| + typedef std::map<int, skia::RefPtr<SkPicture> > PictureMap;
|
| PictureMap picture_map_;
|
| base::Lock lock_;
|
| };
|
|
|