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

Unified Diff: cc/layers/nine_patch_layer_impl.cc

Issue 1096703006: cc: Some more cleanup and removing TODOs for validating resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: cc/layers/nine_patch_layer_impl.cc
diff --git a/cc/layers/nine_patch_layer_impl.cc b/cc/layers/nine_patch_layer_impl.cc
index 898e6b5ff5415e936f6e5f2ee762912c1f62dc8c..fc2f45752629a4300f48bd870bedd4a58ff74a4c 100644
--- a/cc/layers/nine_patch_layer_impl.cc
+++ b/cc/layers/nine_patch_layer_impl.cc
@@ -100,9 +100,6 @@ void NinePatchLayerImpl::AppendQuads(
if (!resource)
return;
- // TODO(danakj): crbug.com/455931
- layer_tree_impl()->resource_provider()->ValidateResource(resource);
-
static const bool flipped = false;
static const bool nearest_neighbor = false;
static const bool premultiplied_alpha = true;
@@ -234,6 +231,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -255,6 +253,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -276,6 +275,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -297,6 +297,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -318,6 +319,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -339,6 +341,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -360,6 +363,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
visible_rect =
@@ -381,6 +385,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
if (fill_center_) {
@@ -403,6 +408,7 @@ void NinePatchLayerImpl::AppendQuads(
vertex_opacity,
flipped,
nearest_neighbor);
+ ValidateQuadResources(quad);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698