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

Unified Diff: cc/output/bsp_walk_action.cc

Issue 2680203005: cc: Use DrawingFrame as state, not function argument (Closed)
Patch Set: Add reset Created 3 years, 10 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/output/bsp_walk_action.h ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/bsp_walk_action.cc
diff --git a/cc/output/bsp_walk_action.cc b/cc/output/bsp_walk_action.cc
index 56fca47852dc503aa108a595057129788a7dd717..5acbc500445fd413a6f49a7865983c7b6cb0f219 100644
--- a/cc/output/bsp_walk_action.cc
+++ b/cc/output/bsp_walk_action.cc
@@ -15,11 +15,9 @@ namespace cc {
BspWalkActionDrawPolygon::BspWalkActionDrawPolygon(
DirectRenderer* renderer,
- DirectRenderer::DrawingFrame* frame,
const gfx::Rect& render_pass_scissor,
bool using_scissor_as_optimization)
: renderer_(renderer),
- frame_(frame),
render_pass_scissor_(render_pass_scissor),
using_scissor_as_optimization_(using_scissor_as_optimization) {
}
@@ -32,7 +30,7 @@ void BspWalkActionDrawPolygon::operator()(DrawPolygon* item) {
&inverse_transform);
DCHECK(invertible);
item->TransformToLayerSpace(inverse_transform);
- renderer_->DoDrawPolygon(*item, frame_, render_pass_scissor_,
+ renderer_->DoDrawPolygon(*item, render_pass_scissor_,
using_scissor_as_optimization_);
}
« no previous file with comments | « cc/output/bsp_walk_action.h ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698