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

Issue 1161853006: Mac: Add partial swap support to NSOpenGLContext path (Closed)

Created:
5 years, 6 months ago by ccameron
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Add partial swap support to NSOpenGLContext path Add a damage rect parameter to the structure GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params. Because that structure and its IPC are Mac-only, wrap them in ifdefs. Add code in the IOSurface draw function to clear out the difference between the IOSurface and its viewport. BUG=496484 Committed: https://crrev.com/2dc2466eb82ca759c60b94b15937e0a209fd4acd Cr-Commit-Position: refs/heads/master@{#333231}

Patch Set 1 #

Patch Set 2 : Expand ifdefs #

Total comments: 6

Patch Set 3 : Fix boundary computation #

Patch Set 4 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -34 lines) Patch
M content/browser/gpu/gpu_process_host_ui_shim.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M content/common/gpu/image_transport_surface.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_fbo_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_fbo_mac.mm View 3 chunks +4 lines, -0 lines 0 comments Download
M ui/accelerated_widget_mac/accelerated_widget_mac.h View 1 2 3 4 chunks +14 lines, -7 lines 0 comments Download
M ui/accelerated_widget_mac/accelerated_widget_mac.mm View 1 2 3 6 chunks +17 lines, -8 lines 0 comments Download
M ui/accelerated_widget_mac/io_surface_ns_gl_surface.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm View 2 chunks +11 lines, -2 lines 0 comments Download
M ui/accelerated_widget_mac/io_surface_texture.h View 3 chunks +5 lines, -1 line 0 comments Download
M ui/accelerated_widget_mac/io_surface_texture.mm View 1 2 3 chunks +40 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
ccameron
Lots of plumbing, but not much else going on here.
5 years, 6 months ago (2015-06-05 01:20:42 UTC) #2
Ken Russell (switch to Gerrit)
LGTM Does this work when using the OpenGL Core Profile on Mac OS -- --enable-unsafe-es3-apis? ...
5 years, 6 months ago (2015-06-05 21:43:27 UTC) #3
ccameron
Thanks! Yes, this should be okay with the core profile, because it's entirely in the ...
5 years, 6 months ago (2015-06-05 22:46:22 UTC) #4
ccameron
Adding dcheng@ for security review.
5 years, 6 months ago (2015-06-05 22:47:34 UTC) #6
dcheng
ipc changes lgtm with some nits https://codereview.chromium.org/1161853006/diff/20001/ui/accelerated_widget_mac/accelerated_widget_mac.h File ui/accelerated_widget_mac/accelerated_widget_mac.h (right): https://codereview.chromium.org/1161853006/diff/20001/ui/accelerated_widget_mac/accelerated_widget_mac.h#newcode84 ui/accelerated_widget_mac/accelerated_widget_mac.h:84: gfx::Rect pixel_damage_rect, I ...
5 years, 6 months ago (2015-06-05 23:31:41 UTC) #7
ccameron
Thanks! https://codereview.chromium.org/1161853006/diff/20001/ui/accelerated_widget_mac/accelerated_widget_mac.h File ui/accelerated_widget_mac/accelerated_widget_mac.h (right): https://codereview.chromium.org/1161853006/diff/20001/ui/accelerated_widget_mac/accelerated_widget_mac.h#newcode84 ui/accelerated_widget_mac/accelerated_widget_mac.h:84: gfx::Rect pixel_damage_rect, On 2015/06/05 23:31:41, dcheng wrote: > ...
5 years, 6 months ago (2015-06-07 19:48:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161853006/60001
5 years, 6 months ago (2015-06-07 20:12:18 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-07 20:42:12 UTC) #12
commit-bot: I haz the power
5 years, 6 months ago (2015-06-07 20:43:11 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2dc2466eb82ca759c60b94b15937e0a209fd4acd
Cr-Commit-Position: refs/heads/master@{#333231}

Powered by Google App Engine
This is Rietveld 408576698