|
Make delegated software renderer work on Mac
Add a device scale factor parameter to SoftwareOutputDevice::Resize and
plumb that parameter through to the contentsScale property of the CALayer
that is used to draw the software frame.
Change the way that RWHVMac draws software frames (both delegated and
non-delegated) so that the CALayer for the software frame has setContents
called on it with a CGImageRef of the software frame, instead of drawing
the CGImageRef to the inside the CALayer's displayInContext function. This
is the way that things should have been done to begin with (it involves a lot
less copying and a lot more idle time in the browser main thread), but wasn't
compatible with the (now-defunct) legacy software path.
Change the software rendering path to set the contentsScale of the software
CALayer at the time that the software frame is received, when the contents
are updated, instead of in RWHVMac::LayoutLayers.
BUG= 314190
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271839
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+264 lines, -100 lines) |
Patch |
 |
M |
cc/output/output_surface.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/software_output_device.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/output/software_output_device.cc
|
View
|
1
2
3
|
2 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_software_output_device.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_software_output_device.cc
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/in_process/synchronous_compositor_output_surface.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_process_transport_factory.cc
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/compositor/software_output_device_mac.h
|
View
|
1
2
3
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/compositor/software_output_device_mac.mm
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_ozone.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_ozone.cc
|
View
|
1
2
3
|
1 chunk |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_ozone_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_win.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_win.cc
|
View
|
1
2
3
|
2 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_x11.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_output_device_x11.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.h
|
View
|
1
2
3
|
2 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
|
13 chunks |
+90 lines, -42 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/compositor_software_output_device.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/compositor_software_output_device.cc
|
View
|
1
2
3
|
7 chunks |
+16 lines, -12 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|