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

Unified Diff: core/cross/renderer.h

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 | « no previous file | core/cross/renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/renderer.h
===================================================================
--- core/cross/renderer.h (revision 25781)
+++ core/cross/renderer.h (working copy)
@@ -629,37 +629,11 @@
// Sets the client's size. Derived classes must call this on Init and Resize.
void SetClientSize(int width, int height);
- // The current render surfaces. NULL = no surface.
- const RenderSurface* current_render_surface_;
- const RenderDepthStencilSurface* current_depth_surface_;
- bool current_render_surface_is_back_buffer_;
+ // Calls any registered lost resources callback.
+ void CallLostResourcesCallback() const {
+ lost_resources_callback_manager_.Run();
+ }
- Sampler::Ref error_sampler_; // sampler used when one is missing.
- Texture::Ref error_texture_; // texture used when one is missing.
- Texture::Ref fallback_error_texture_; // texture used when error_texture is
- // null.
- ParamObject::Ref error_object_; // holds params used for missing textures.
- ParamSampler::Ref error_param_sampler_; // A Param for the error sampler.
-
- // Map of State Handlers.
- StateHandlerMap state_handler_map_;
-
- // Stack of state params
- ParamVectorArray state_param_stacks_;
-
- // Stack of state objects.
- StateArray state_stack_;
-
- // State object holding the default state settings.
- State::Ref default_state_;
-
- // A State object holding the settings required to be able to clear the
- // back buffer.
- State::Ref clear_back_buffer_state_;
-
- // Lost Resources Callbacks.
- LostResourcesCallbackManager lost_resources_callback_manager_;
-
int dest_x_offset() const {
return dest_x_offset_;
}
@@ -693,6 +667,37 @@
ServiceImplementation<Renderer> service_;
ServiceDependency<Features> features_;
+ // The current render surfaces. NULL = no surface.
+ const RenderSurface* current_render_surface_;
+ const RenderDepthStencilSurface* current_depth_surface_;
+ bool current_render_surface_is_back_buffer_;
+
+ Sampler::Ref error_sampler_; // sampler used when one is missing.
+ Texture::Ref error_texture_; // texture used when one is missing.
+ Texture::Ref fallback_error_texture_; // texture used when error_texture is
+ // null.
+ ParamObject::Ref error_object_; // holds params used for missing textures.
+ ParamSampler::Ref error_param_sampler_; // A Param for the error sampler.
+
+ // Map of State Handlers.
+ StateHandlerMap state_handler_map_;
+
+ // Stack of state params
+ ParamVectorArray state_param_stacks_;
+
+ // Stack of state objects.
+ StateArray state_stack_;
+
+ // State object holding the default state settings.
+ State::Ref default_state_;
+
+ // A State object holding the settings required to be able to clear the
+ // back buffer.
+ State::Ref clear_back_buffer_state_;
+
+ // Lost Resources Callbacks.
+ LostResourcesCallbackManager lost_resources_callback_manager_;
+
// Current viewport setting.
Float4 viewport_;
« no previous file with comments | « no previous file | core/cross/renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698