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

Side by Side Diff: core/cross/client.h

Issue 5843001: Fix ON_DEMAND_RENDER mode on Mac OSX.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | core/cross/client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // modifies some HTML form text fields on render callback, which on 257 // modifies some HTML form text fields on render callback, which on
258 // Firefox causes a plugin invalidation and round and round we would 258 // Firefox causes a plugin invalidation and round and round we would
259 // go. 259 // go.
260 void RenderClient(bool send_callback); 260 void RenderClient(bool send_callback);
261 261
262 // In some situations (on Mac OS X at least) calling the user's 262 // In some situations (on Mac OS X at least) calling the user's
263 // render callback can cause OS events to be dispatched which cause 263 // render callback can cause OS events to be dispatched which cause
264 // the plugin to become reentrant. Detect this at a higher level. 264 // the plugin to become reentrant. Detect this at a higher level.
265 bool IsRendering(); 265 bool IsRendering();
266 266
267 // Needs either ONDEMAND or CONTINOUS render.
268 bool NeedsRender();
269
267 // If Renderer::max_fps has been set in RENDERMODE_CONTINUOUS mode, we don't 270 // If Renderer::max_fps has been set in RENDERMODE_CONTINUOUS mode, we don't
268 // draw on each tick but just let new textures drive the rendering. There is 271 // draw on each tick but just let new textures drive the rendering. There is
269 // only one exception: if we haven't received any new textures for a while, we 272 // only one exception: if we haven't received any new textures for a while, we
270 // still need to draw in order to trigger rendering callback. Since there 273 // still need to draw in order to trigger rendering callback. Since there
271 // might be some UI depends on rendering callback. 274 // might be some UI depends on rendering callback.
272 // This function determines if this has happened and if we need a draw. 275 // This function determines if this has happened and if we need a draw.
273 bool NeedsContinuousRender(); 276 bool NeedsContinuousRender();
274 277
275 // Sets the texture to use when a Texture or Sampler is missing while 278 // Sets the texture to use when a Texture or Sampler is missing while
276 // rendering. If you set it to NULL you'll get an error if you try to render 279 // rendering. If you set it to NULL you'll get an error if you try to render
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 541
539 RenderSurface::Ref offscreen_render_surface_; 542 RenderSurface::Ref offscreen_render_surface_;
540 RenderDepthStencilSurface::Ref offscreen_depth_render_surface_; 543 RenderDepthStencilSurface::Ref offscreen_depth_render_surface_;
541 544
542 DISALLOW_COPY_AND_ASSIGN(Client); 545 DISALLOW_COPY_AND_ASSIGN(Client);
543 }; // Client 546 }; // Client
544 547
545 } // namespace o3d 548 } // namespace o3d
546 549
547 #endif // O3D_CORE_CROSS_CLIENT_H_ 550 #endif // O3D_CORE_CROSS_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | core/cross/client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698