Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: android_webview/common/renderer_picture_map.h

Issue 11732002: [Android WebView] Update SW rendering to use SkPicture and fix scrolling cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to use SkPicture and simplify. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
};

Powered by Google App Engine
This is Rietveld 408576698