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

Unified Diff: cc/layers/tiled_layer_impl.cc

Issue 1144523003: Rename cc::ResourceProvider::ResourceId to cc::ResourceId and move it to its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/layers/tiled_layer_impl.h ('k') | cc/layers/tiled_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/tiled_layer_impl.cc
diff --git a/cc/layers/tiled_layer_impl.cc b/cc/layers/tiled_layer_impl.cc
index 66aee5282c6be9c03da9850d787291dadccc128b..92a34265fe2f028cd981dece73be66bf1108207c 100644
--- a/cc/layers/tiled_layer_impl.cc
+++ b/cc/layers/tiled_layer_impl.cc
@@ -29,10 +29,8 @@ class DrawableTile : public LayerTilingData::Tile {
return make_scoped_ptr(new DrawableTile());
}
- ResourceProvider::ResourceId resource_id() const { return resource_id_; }
- void set_resource_id(ResourceProvider::ResourceId resource_id) {
- resource_id_ = resource_id;
- }
+ ResourceId resource_id() const { return resource_id_; }
+ void set_resource_id(ResourceId resource_id) { resource_id_ = resource_id; }
bool contents_swizzled() { return contents_swizzled_; }
void set_contents_swizzled(bool contents_swizzled) {
contents_swizzled_ = contents_swizzled;
@@ -41,7 +39,7 @@ class DrawableTile : public LayerTilingData::Tile {
private:
DrawableTile() : resource_id_(0), contents_swizzled_(false) {}
- ResourceProvider::ResourceId resource_id_;
+ ResourceId resource_id_;
bool contents_swizzled_;
DISALLOW_COPY_AND_ASSIGN(DrawableTile);
@@ -61,9 +59,8 @@ TiledLayerImpl::TiledLayerImpl(
TiledLayerImpl::~TiledLayerImpl() {
}
-void TiledLayerImpl::GetContentsResourceId(
- ResourceProvider::ResourceId* resource_id,
- gfx::Size* resource_size) const {
+void TiledLayerImpl::GetContentsResourceId(ResourceId* resource_id,
+ gfx::Size* resource_size) const {
// This function is only valid for single texture layers, e.g. masks.
DCHECK(tiler_);
// It's possible the mask layer is created but has no size or otherwise
@@ -287,11 +284,10 @@ void TiledLayerImpl::SetTilingData(const LayerTilingData& tiler) {
*tiler_ = tiler;
}
-void TiledLayerImpl::PushTileProperties(
- int i,
- int j,
- ResourceProvider::ResourceId resource_id,
- bool contents_swizzled) {
+void TiledLayerImpl::PushTileProperties(int i,
+ int j,
+ ResourceId resource_id,
+ bool contents_swizzled) {
DrawableTile* tile = TileAt(i, j);
if (!tile)
tile = CreateTile(i, j);
« no previous file with comments | « cc/layers/tiled_layer_impl.h ('k') | cc/layers/tiled_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698