|
Mac Flash: Fix scaling bitmap
There was a bug in the Flash code that caused a render crash. To reproduce the crash you had to do the following:
- run on a Retina device
- disable accelerated compositing
- enable click to play
In this case playing a flash video would crash the renderer.
The problem was that we were incorrectly calculating the scaled rect of a bitmap.
For example, when the pixel size of the bitmap is 1x1 the scaled size should be 0x0. Instead we were rounding up and returning a scaled valeu of 1x1.
Fix was to use ToEnclosedRect instead of ToEnclosingRect.
BUG= 155309
TBR=brettw@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162384
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+131 lines, -7 lines) |
Patch |
 |
A |
webkit/plugins/ppapi/mock_platform_image_2d.h
|
View
|
1
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
webkit/plugins/ppapi/mock_platform_image_2d.cc
|
View
|
1
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/mock_plugin_delegate.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_unittest.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_unittest.cc
|
View
|
1
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_2d_impl.h
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_2d_impl_unittest.cc
|
View
|
1
2
|
2 chunks |
+45 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 23 (0 generated)
|