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

Issue 8351023: PPAPI NaCl Proxy: optimize PPB_Fullscreen::IsFullscreen. (Closed)

Created:
9 years, 2 months ago by polina
Modified:
9 years, 2 months ago
Reviewers:
bbudge
CC:
chromium-reviews
Visibility:
Public.

Description

PPAPI NaCl Proxy: optimize PPB_Fullscreen::IsFullscreen. Given the intended usage of the Fullscreen API, IsFullscreen is likely to be called by the user within each DidChangeView to handle fullscreen mode changes. Use DidChangeView RPC to keep track of the fullscreen state to avoid extra RPCs. Implement IsFullscreen locally to just query that state. BUG=101433 TEST=scons run_ppapi_ppb_fullscreen_browser_test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107184

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -89 lines) Patch
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_fullscreen_rpc_server.cc View 1 chunk +1 line, -17 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_instance.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.cc View 1 1 chunk +12 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.cc View 2 chunks +2 lines, -11 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_instance_rpc_server.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_fullscreen.srpc View 1 chunk +0 lines, -6 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc View 2 chunks +0 lines, -15 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppp_instance.srpc View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppp_rpc_client.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppp_rpc_server.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
polina
9 years, 2 months ago (2011-10-25 01:17:02 UTC) #1
bbudge
One comment about setters. http://codereview.chromium.org/8351023/diff/1/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h File ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h (right): http://codereview.chromium.org/8351023/diff/1/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h#newcode35 ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h:35: void set_is_fullscreen(bool value) { is_fullscreen_ ...
9 years, 2 months ago (2011-10-25 17:11:46 UTC) #2
polina
http://codereview.chromium.org/8351023/diff/1/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h File ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h (right): http://codereview.chromium.org/8351023/diff/1/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h#newcode35 ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h:35: void set_is_fullscreen(bool value) { is_fullscreen_ = value; } On ...
9 years, 2 months ago (2011-10-25 18:52:19 UTC) #3
bbudge
LGTM. Nice optimization.
9 years, 2 months ago (2011-10-25 19:09:31 UTC) #4
polina
9 years, 2 months ago (2011-10-25 20:06:08 UTC) #5
On 2011/10/25 19:09:31, bbudge1 wrote:
> LGTM. Nice optimization.

Committed revision 107184.

Powered by Google App Engine
This is Rietveld 408576698