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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.cc

Issue 8351023: PPAPI NaCl Proxy: optimize PPB_Fullscreen::IsFullscreen. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.cc (revision 107024)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.cc (working copy)
@@ -45,11 +45,21 @@
// static
void PluginInstanceData::DidChangeView(PP_Instance id,
PP_Rect position,
- PP_Rect clip) {
+ PP_Rect clip,
+ bool is_fullscreen) {
PluginInstanceData* instance = FromPP(id);
if (instance) {
instance->set_position(position);
+ instance->set_is_fullscreen(is_fullscreen);
}
}
+// static
+bool PluginInstanceData::IsFullscreen(PP_Instance id) {
+ PluginInstanceData* instance = FromPP(id);
+ if (instance)
+ return instance->is_fullscreen();
+ return false;
+}
+
} // namespace ppapi_proxy

Powered by Google App Engine
This is Rietveld 408576698