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

Unified Diff: cc/output/gl_renderer.cc

Issue 1158433010: Reland: 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, 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
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index c695429968234a6efa435bdca50d53067d913b47..5dd95029932ee481d25a78adb344ae417a3a31f5 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2232,7 +2232,8 @@ void GLRenderer::FlushTextureQuadCache(BoundGeometry flush_binding) {
static_cast<float*>(&draw_cache_.vertex_opacity_data.front()));
// Draw the quads!
- gl_->DrawElements(GL_TRIANGLES, 6 * draw_cache_.matrix_data.size(),
+ gl_->DrawElements(GL_TRIANGLES,
+ 6 * static_cast<int>(draw_cache_.matrix_data.size()),
GL_UNSIGNED_SHORT, 0);
// Clear the cache.

Powered by Google App Engine
This is Rietveld 408576698