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

Unified Diff: cc/quads/render_pass_draw_quad.cc

Issue 1155553006: Revert of cc: Fix size_t to int truncations in layers/ output/ playback/ quads/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/quads/render_pass.cc ('k') | cc/quads/render_pass_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_draw_quad.cc
diff --git a/cc/quads/render_pass_draw_quad.cc b/cc/quads/render_pass_draw_quad.cc
index 1b03ec87fe70b9212adf9ea54a8bcfa80195fd2c..fc2c333997bc52a18d3e18428a40e63c5167f2f2 100644
--- a/cc/quads/render_pass_draw_quad.cc
+++ b/cc/quads/render_pass_draw_quad.cc
@@ -12,7 +12,8 @@
namespace cc {
-RenderPassDrawQuad::RenderPassDrawQuad() {
+RenderPassDrawQuad::RenderPassDrawQuad()
+ : render_pass_id(RenderPassId(-1, -1)) {
}
RenderPassDrawQuad::~RenderPassDrawQuad() {
@@ -29,6 +30,7 @@
const gfx::Vector2dF& filters_scale,
const FilterOperations& background_filters) {
DCHECK_GT(render_pass_id.layer_id, 0);
+ DCHECK_GE(render_pass_id.index, 0);
gfx::Rect opaque_rect;
bool needs_blending = false;
@@ -59,6 +61,7 @@
const gfx::Vector2dF& filters_scale,
const FilterOperations& background_filters) {
DCHECK_GT(render_pass_id.layer_id, 0);
+ DCHECK_GE(render_pass_id.index, 0);
DrawQuad::SetAll(shared_quad_state, DrawQuad::RENDER_PASS, rect, opaque_rect,
visible_rect, needs_blending);
« no previous file with comments | « cc/quads/render_pass.cc ('k') | cc/quads/render_pass_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698