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

Unified Diff: core/cross/renderer.cc

Issue 199066: Make more stuff private in renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 3 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 | « core/cross/renderer.h ('k') | core/win/d3d9/renderer_d3d9.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/renderer.cc
===================================================================
--- core/cross/renderer.cc (revision 25781)
+++ core/cross/renderer.cc (working copy)
@@ -99,12 +99,12 @@
}
Renderer::Renderer(ServiceLocator* service_locator)
- : current_render_surface_(NULL),
+ : service_locator_(service_locator),
+ service_(service_locator, this),
+ features_(service_locator),
+ current_render_surface_(NULL),
current_depth_surface_(NULL),
current_render_surface_is_back_buffer_(true),
- service_locator_(service_locator),
- service_(service_locator, this),
- features_(service_locator),
viewport_(0.0f, 0.0f, 1.0f, 1.0f),
depth_range_(0.0f, 1.0f),
write_mask_(0xf),
@@ -308,6 +308,9 @@
if (start_depth_ == 0) {
ApplyDirtyStates();
PlatformSpecificFinishRendering();
+ // Don't hold pointers to these when we are finished rendering.
+ current_render_surface_ = NULL;
+ current_depth_surface_ = NULL;
rendering_ = false;
}
}
« no previous file with comments | « core/cross/renderer.h ('k') | core/win/d3d9/renderer_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698