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

Unified Diff: plugin/mac/plugin_mac.mm

Issue 577038: O3D Mac: Add CoreAnimation support (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 8 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 | « plugin/mac/o3d_layer.mm ('k') | plugin/plugin.gyp » ('j') | 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 44394)
+++ plugin/mac/plugin_mac.mm (working copy)
@@ -40,7 +40,9 @@
#include "plugin/cross/main.h"
#include "core/mac/display_window_mac.h"
#include "plugin/mac/graphics_utils_mac.h"
+#import "plugin/mac/o3d_layer.h"
+
#if !defined(O3D_INTERNAL_PLUGIN)
BreakpadRef gBreakpadRef = NULL;
#endif
@@ -236,6 +238,15 @@
NPP instance = instances_[i];
PluginObject* obj = static_cast<PluginObject*>(instance->pdata);
+ if (obj->drawing_model_ == NPDrawingModelCoreAnimation) {
+ O3DLayer* o3dLayer = static_cast<O3DLayer*>(obj->gl_layer_);
+ if (o3dLayer) {
+ obj->client()->Tick();
+ [o3dLayer setNeedsDisplay];
+ }
+ return;
+ }
+
ManageSafariTabSwitching(obj);
obj->client()->Tick();
« no previous file with comments | « plugin/mac/o3d_layer.mm ('k') | plugin/plugin.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698