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

Unified Diff: plugin/mac/plugin_mac.mm

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « plugin/mac/o3d_layer.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/mac/plugin_mac.mm
===================================================================
--- plugin/mac/plugin_mac.mm (revision 69196)
+++ plugin/mac/plugin_mac.mm (working copy)
@@ -251,7 +251,10 @@
O3DLayer* o3dLayer = static_cast<O3DLayer*>(obj->gl_layer_);
if (o3dLayer) {
obj->client()->Tick();
- [o3dLayer setNeedsDisplay];
+
+ if (obj->client()->NeedsRender()) {
+ [o3dLayer setNeedsDisplay];
+ }
}
continue;
}
@@ -280,8 +283,7 @@
obj->IsOffscreenRenderingEnabled();
if (plugin_visible && obj->renderer()) {
- if (obj->client()->NeedsContinuousRender() ||
- obj->renderer()->need_to_render()) {
+ if (obj->client()->NeedsRender()) {
// Force a sync to the VBL (once per timer callback)
// to avoid tearing
GLint sync = (i == 0);
« no previous file with comments | « plugin/mac/o3d_layer.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698