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

Unified Diff: cc/playback/discardable_image_map.h

Issue 2551583003: Revert of cc: Build Image to Region map during image meta-data generation. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | cc/playback/discardable_image_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/discardable_image_map.h
diff --git a/cc/playback/discardable_image_map.h b/cc/playback/discardable_image_map.h
index c773a7237057e7cb9c886a81f039e290c6088248..00506809a5fcba8869307187813fbd9bd8a72a4a 100644
--- a/cc/playback/discardable_image_map.h
+++ b/cc/playback/discardable_image_map.h
@@ -5,12 +5,10 @@
#ifndef CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_
#define CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_
-#include <unordered_map>
#include <utility>
#include <vector>
#include "cc/base/cc_export.h"
-#include "cc/base/region.h"
#include "cc/base/rtree.h"
#include "cc/playback/draw_image.h"
#include "third_party/skia/include/core/SkCanvas.h"
@@ -28,9 +26,6 @@
// rect and get back a list of DrawImages in that rect.
class CC_EXPORT DiscardableImageMap {
public:
- // A map of SkImage id to the region for this image.
- using ImageToRegionMap = std::unordered_map<uint32_t, Region>;
-
class CC_EXPORT ScopedMetadataGenerator {
public:
ScopedMetadataGenerator(DiscardableImageMap* image_map,
@@ -51,7 +46,6 @@
void GetDiscardableImagesInRect(const gfx::Rect& rect,
const gfx::SizeF& raster_scales,
std::vector<DrawImage>* images) const;
- Region GetRegionForImage(uint32_t image_id) const;
private:
friend class ScopedMetadataGenerator;
@@ -61,8 +55,6 @@
void EndGeneratingMetadata();
std::vector<std::pair<DrawImage, gfx::Rect>> all_images_;
- ImageToRegionMap image_id_to_region_;
-
RTree images_rtree_;
};
« no previous file with comments | « no previous file | cc/playback/discardable_image_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698