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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.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_ppb_fullscreen.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.cc (revision 107024)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.cc (working copy)
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "native_client/src/shared/ppapi_proxy/plugin_instance_data.h"
#include "native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.h"
#include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
#include "native_client/src/shared/ppapi_proxy/utility.h"
@@ -16,17 +17,7 @@
PP_Bool IsFullscreen(PP_Instance instance) {
DebugPrintf("PPB_Fullscreen::IsFullscreen: instance=%"NACL_PRIu32"\n",
instance);
-
- int32_t success;
- NaClSrpcError srpc_result =
- PpbFullscreenRpcClient::PPB_Fullscreen_IsFullscreen(
- GetMainSrpcChannel(), instance, &success);
- DebugPrintf("PPB_Fullscreen::IsFullscreen: %s\n",
- NaClSrpcErrorString(srpc_result));
-
- if (srpc_result == NACL_SRPC_RESULT_OK && success)
- return PP_TRUE;
- return PP_FALSE;
+ return PluginInstanceData::IsFullscreen(instance) ? PP_TRUE : PP_FALSE;
}

Powered by Google App Engine
This is Rietveld 408576698