|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by hush (inactive) Modified:
4 years, 3 months ago CC:
chromium-reviews, jam, darin-cc_chromium.org, oshima Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix the scale of Drag and Drop shadow image.
Physical Pixel = CSS pixel * DIP scale * page scale.
In the case of our bitmap shadow image, page scale is not applied to it.
BUG=648413
Committed: https://crrev.com/adba2165f4c6e1c7d4a78179d6e066aa8e37f938
Cr-Commit-Position: refs/heads/master@{#420243}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix in blink instead. #Patch Set 3 : add tests #Patch Set 4 : space #
Messages
Total messages: 26 (13 generated)
hush@chromium.org changed reviewers: + tedchoc@chromium.org
Hello Ted, PTAL
https://codereview.chromium.org/2352773003/diff/1/content/browser/web_content... File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2352773003/diff/1/content/browser/web_content... content/browser/web_contents/web_contents_view_android.cc:256: jtext, gfx::ConvertToJavaBitmap(image.bitmap()), page_scale)) { who generates the bitmap? In this case, were we generating it to be too large? If so, we should really try to fix it at generation time to be scaled down to avoid passing a bigger bitmap across to java (since it will use more memory for something we don't actually need).
https://codereview.chromium.org/2352773003/diff/1/content/browser/web_content... File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2352773003/diff/1/content/browser/web_content... content/browser/web_contents/web_contents_view_android.cc:256: jtext, gfx::ConvertToJavaBitmap(image.bitmap()), page_scale)) { On 2016/09/20 20:05:24, Ted C wrote: > who generates the bitmap? > > In this case, were we generating it to be too large? If so, we should really > try to fix it at generation time to be scaled down to avoid passing a bigger > bitmap across to java (since it will use more memory for something we don't > actually need). Blink generates it here. https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/page/Drag... It is not always bigger than what's needed though: if page scale is < 1, the bitmap is bigger than necessary. Otherwise, it is smaller than necessary.
hush@chromium.org changed reviewers: + dcheng@chromium.org
Hello Daniel, PTAL
dcheng@chromium.org changed reviewers: + wjmaclean@chromium.org
+wjmaclean for the review, he knows the scaling stuff better than me. (I thought we were consolidating PSF and DSF? What happened to that?)
On 2016/09/20 22:17:24, dcheng wrote: > +wjmaclean for the review, he knows the scaling stuff better than me. > > (I thought we were consolidating PSF and DSF? What happened to that?) Page zoom levels and device scale factors have been consolidated (though still behind a flag which is on for CrOS, not sure about where all else). But PageScaleFactor and visual viewport are related to pinch-zoom, so it might be worth getting bokan@ to confirm. Based on the TODO in the code, I think this seems likes a perfectly reasonable change for now. lgtm
Description was changed from ========== Fix the scale of Drag and Drop shadow image. Physical Pixel = CSS pixel * DIP scale * page scale. In the case of our bitmap shadow image, page scale is not applied to it. BUG=648413 ========== to ========== Fix the scale of Drag and Drop shadow image. Physical Pixel = CSS pixel * DIP scale * page scale. In the case of our bitmap shadow image, page scale is not applied to it. BUG=648413 ==========
wjmaclean@chromium.org changed reviewers: + bokan@chromium.org
+ bokan@ in case he wants a look.
The CQ bit was checked by hush@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Change looks fine to me, could we get a test?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
On 2016/09/21 at 21:02:16, bokan wrote: > Change looks fine to me, could we get a test? Sure. I added a test in the latest patch set.
thanks, lgtm
The CQ bit was checked by hush@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from wjmaclean@chromium.org Link to the patchset: https://codereview.chromium.org/2352773003/#ps60001 (title: "space")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Fix the scale of Drag and Drop shadow image. Physical Pixel = CSS pixel * DIP scale * page scale. In the case of our bitmap shadow image, page scale is not applied to it. BUG=648413 ========== to ========== Fix the scale of Drag and Drop shadow image. Physical Pixel = CSS pixel * DIP scale * page scale. In the case of our bitmap shadow image, page scale is not applied to it. BUG=648413 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Fix the scale of Drag and Drop shadow image. Physical Pixel = CSS pixel * DIP scale * page scale. In the case of our bitmap shadow image, page scale is not applied to it. BUG=648413 ========== to ========== Fix the scale of Drag and Drop shadow image. Physical Pixel = CSS pixel * DIP scale * page scale. In the case of our bitmap shadow image, page scale is not applied to it. BUG=648413 Committed: https://crrev.com/adba2165f4c6e1c7d4a78179d6e066aa8e37f938 Cr-Commit-Position: refs/heads/master@{#420243} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/adba2165f4c6e1c7d4a78179d6e066aa8e37f938 Cr-Commit-Position: refs/heads/master@{#420243} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
