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

Issue 10544168: Implement HiDPI support in Pepper dev interface (Closed)

Created:
8 years, 6 months ago by Josh Horwich
Modified:
8 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews
Visibility:
Public.

Description

Implement HiDPI support in Pepper dev interface This patch requires WebKit patch https://bugs.webkit.org/show_bug.cgi?id=87874 (WebKit r121364) Expose device_scale_factor and css_scale_factor to Pepper plugins via a dev interface on View resource. Allow Pepper plugins to create a 2D graphics context with a scale factor so the plugins can render at device resolution rather than DIPs if they want. BUG=114673 TEST=browser_tests --gtest_filter="PPAPITest.*" TEST=browser_tests --gtest_filter="OutOfProcessPPAPITest.*" TEST=Build, run existing PPAPI plugin at 2x scale TEST=Build, run test HiDPI aware plugin to render at device rez, at 1x, 2x scale Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144773

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated based on review feedback #

Patch Set 3 : Add comments to Graphics2DDev C++ header #

Total comments: 18

Patch Set 4 : Update based on review feedback, disabled tests under NaCl #

Patch Set 5 : Rebase, update to latest WK patch #

Patch Set 6 : Fix rebase of all_cpp_includes #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+573 lines, -7 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 1 chunk +11 lines, -1 line 0 comments Download
A ppapi/api/dev/ppb_graphics_2d_dev.idl View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A ppapi/api/dev/ppb_view_dev.idl View 1 1 chunk +43 lines, -0 lines 0 comments Download
A ppapi/c/dev/ppb_graphics_2d_dev.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A ppapi/c/dev/ppb_view_dev.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/graphics_2d_dev.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/graphics_2d_dev.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/view_dev.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/view_dev.cc View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_graphics_2d_proxy.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_graphics_2d_proxy.cc View 1 2 3 4 5 6 6 chunks +28 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_view_shared.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_view_shared.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/tests/all_cpp_includes.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/tests/test_graphics_2d.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_graphics_2d.cc View 1 2 3 3 chunks +41 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_graphics_2d_api.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_graphics_2d_thunk.cc View 1 2 3 4 5 6 3 chunks +24 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_view_thunk.cc View 1 3 chunks +24 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_2d_impl.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_2d_impl.cc View 1 2 3 4 5 6 4 chunks +24 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Josh Horwich
Brett, Please take a look. Also, let me know if you want me to spread ...
8 years, 6 months ago (2012-06-15 00:22:38 UTC) #1
brettw
https://chromiumcodereview.appspot.com/10544168/diff/1/ppapi/api/private/ppb_graphics_2d_private.idl File ppapi/api/private/ppb_graphics_2d_private.idl (right): https://chromiumcodereview.appspot.com/10544168/diff/1/ppapi/api/private/ppb_graphics_2d_private.idl#newcode43 ppapi/api/private/ppb_graphics_2d_private.idl:43: PP_Resource Create( This is a bit confusing because normally ...
8 years, 6 months ago (2012-06-18 21:17:23 UTC) #2
Josh Horwich
Please take a look. https://chromiumcodereview.appspot.com/10544168/diff/1/ppapi/api/private/ppb_graphics_2d_private.idl File ppapi/api/private/ppb_graphics_2d_private.idl (right): https://chromiumcodereview.appspot.com/10544168/diff/1/ppapi/api/private/ppb_graphics_2d_private.idl#newcode43 ppapi/api/private/ppb_graphics_2d_private.idl:43: PP_Resource Create( On 2012/06/18 21:17:24, ...
8 years, 6 months ago (2012-06-19 02:01:04 UTC) #3
brettw
API comments, didn't look at the impl yet. https://chromiumcodereview.appspot.com/10544168/diff/4002/ppapi/api/dev/ppb_graphics_2d_dev.idl File ppapi/api/dev/ppb_graphics_2d_dev.idl (right): https://chromiumcodereview.appspot.com/10544168/diff/4002/ppapi/api/dev/ppb_graphics_2d_dev.idl#newcode31 ppapi/api/dev/ppb_graphics_2d_dev.idl:31: [in] ...
8 years, 6 months ago (2012-06-19 18:28:21 UTC) #4
brettw
https://chromiumcodereview.appspot.com/10544168/diff/4002/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://chromiumcodereview.appspot.com/10544168/diff/4002/ppapi/proxy/ppapi_messages.h#newcode850 ppapi/proxy/ppapi_messages.h:850: IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics2D_Dev_SetScale, Don't make this a sync message and just ...
8 years, 6 months ago (2012-06-19 20:21:27 UTC) #5
Josh Horwich
Please take a look. Updated based on review feedback, and disabled running tests of the ...
8 years, 6 months ago (2012-06-19 23:56:15 UTC) #6
brettw
LGTM!
8 years, 6 months ago (2012-06-22 17:59:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhorwich@chromium.org/10544168/44001
8 years, 5 months ago (2012-06-28 18:32:12 UTC) #8
commit-bot: I haz the power
8 years, 5 months ago (2012-06-28 19:33:35 UTC) #9
Change committed as 144773

Powered by Google App Engine
This is Rietveld 408576698