Descriptionandroid: Fix inconsistent sizes in GetScaledContentBitmap
GetScaledContentBitmap assumes that bounds() of RWHVAndroid's layer is in pixel
space. This is no longer true since https://codereview.chromium.org/311253004/.
This patch makes clear that the |src_subrect| input to GetScaledContentBitmap is
in pixel space and that the method internally scales the input size to be in DIP
space, which is the expected input space of CopyFromCompositingSurface.
BUG=383572
Patch Set 1 #Patch Set 2 : more adjustment #Patch Set 3 : even more clarity #Patch Set 4 : last change i hope #
Total comments: 4
Patch Set 5 : fixed dcheck #Patch Set 6 : make set_area consistent #
Messages
Total messages: 4 (0 generated)
|