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

Unified Diff: cc/picture_pile_base.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « cc/picture_pile.cc ('k') | cc/picture_pile_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_pile_base.h
diff --git a/cc/picture_pile_base.h b/cc/picture_pile_base.h
deleted file mode 100644
index c900c7f6747d37eea872970d34e14f7eaf14efbd..0000000000000000000000000000000000000000
--- a/cc/picture_pile_base.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_PICTURE_PILE_BASE_H_
-#define CC_PICTURE_PILE_BASE_H_
-
-#include <list>
-
-#include "base/hash_tables.h"
-#include "base/memory/ref_counted.h"
-#include "cc/base/cc_export.h"
-#include "cc/base/hash_pair.h"
-#include "cc/base/region.h"
-#include "cc/base/tiling_data.h"
-#include "cc/picture.h"
-#include "ui/gfx/size.h"
-
-namespace cc {
-
-class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
- public:
- PicturePileBase();
- PicturePileBase(const PicturePileBase* other);
- PicturePileBase(const PicturePileBase* other, unsigned thread_index);
-
- void Resize(gfx::Size size);
- gfx::Size size() const { return tiling_.total_size(); }
- void SetMinContentsScale(float min_contents_scale);
-
- void UpdateRecordedRegion();
- const Region& recorded_region() const { return recorded_region_; }
-
- int num_tiles_x() const { return tiling_.num_tiles_x(); }
- int num_tiles_y() const { return tiling_.num_tiles_y(); }
- gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); }
- bool HasRecordingAt(int x, int y);
- bool CanRaster(float contents_scale, gfx::Rect content_rect);
-
- void SetTileGridSize(const gfx::Size& tile_grid_size);
-
- protected:
- virtual ~PicturePileBase();
-
- int num_raster_threads() { return num_raster_threads_; }
- int buffer_pixels() const { return tiling_.border_texels(); }
- void Clear();
-
- typedef std::pair<int, int> PictureListMapKey;
- typedef std::list<scoped_refptr<Picture> > PictureList;
- typedef base::hash_map<PictureListMapKey, PictureList> PictureListMap;
-
- // A picture pile is a tiled set of picture lists. The picture list map
- // is a map of tile indices to picture lists.
- PictureListMap picture_list_map_;
- TilingData tiling_;
- Region recorded_region_;
- float min_contents_scale_;
- SkTileGridPicture::TileGridInfo tile_grid_info_;
- SkColor background_color_;
- int slow_down_raster_scale_factor_for_debug_;
- int num_raster_threads_;
-
- private:
- void SetBufferPixels(int buffer_pixels);
-
- friend class base::RefCounted<PicturePileBase>;
- DISALLOW_COPY_AND_ASSIGN(PicturePileBase);
-};
-
-} // namespace cc
-
-#endif // CC_PICTURE_PILE_H_
« no previous file with comments | « cc/picture_pile.cc ('k') | cc/picture_pile_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698