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

Issue 2119723002: Color: Add SetColorSpace member to gfx::GpuMemoryBuffer (Closed)

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

Description

Color: Add SetColorSpace member to gfx::GpuMemoryBuffer Add implementation on Mac (where the ICC profile is sent to the IOSurface). Add plumbing to call this for the backbuffer. Add plumbing to get this from the RenderWidgetHostViewMac. BUG=622133 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/9a14007087ef20839871a5284ee3974ada1b208c Cr-Commit-Position: refs/heads/master@{#403572}

Patch Set 1 #

Patch Set 2 : Don't pollute headers #

Patch Set 3 : Add mac plumbing #

Total comments: 2

Patch Set 4 : Add OWNERs #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -33 lines) Patch
M components/display_compositor/buffer_queue.h View 3 chunks +5 lines, -1 line 0 comments Download
M components/display_compositor/buffer_queue.cc View 3 chunks +6 lines, -2 lines 1 comment Download
M components/display_compositor/buffer_queue_unittest.cc View 12 chunks +34 lines, -11 lines 0 comments Download
M components/mus/surfaces/direct_output_surface_ozone.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
A gpu/ipc/client/OWNERS View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M ui/gfx/color_space.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ui/gfx/color_space_mac.mm View 1 2 1 chunk +14 lines, -12 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.cc View 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 21 (9 generated)
ccameron
Adding enne@ for color review Adding fsamuel for mus/ stamp Adding sievers for gpu/ipc/etc stamp
4 years, 5 months ago (2016-06-30 22:17:19 UTC) #3
enne (OOO)
lgtm https://codereview.chromium.org/2119723002/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2119723002/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode3134 content/browser/renderer_host/render_widget_host_view_mac.mm:3134: if (screen && renderWidgetHostView_->browser_compositor_) { Doesn't the browser ...
4 years, 5 months ago (2016-07-01 17:31:23 UTC) #5
ccameron
Updated. Also added an OWNERs to gpu/ipc/client so I can stop spamming the same people ...
4 years, 5 months ago (2016-07-01 18:53:16 UTC) #6
no sievers
lgtm https://codereview.chromium.org/2119723002/diff/60001/ui/gfx/gpu_memory_buffer.cc File ui/gfx/gpu_memory_buffer.cc (right): https://codereview.chromium.org/2119723002/diff/60001/ui/gfx/gpu_memory_buffer.cc#newcode29 ui/gfx/gpu_memory_buffer.cc:29: const gfx::ColorSpace& color_space) {} nit: NOTIMPLEMENTED()? maybe
4 years, 5 months ago (2016-07-01 21:23:57 UTC) #7
rjkroege
mus lgtm
4 years, 5 months ago (2016-07-01 21:31:00 UTC) #9
ccameron
Thanks! https://codereview.chromium.org/2119723002/diff/60001/ui/gfx/gpu_memory_buffer.cc File ui/gfx/gpu_memory_buffer.cc (right): https://codereview.chromium.org/2119723002/diff/60001/ui/gfx/gpu_memory_buffer.cc#newcode29 ui/gfx/gpu_memory_buffer.cc:29: const gfx::ColorSpace& color_space) {} On 2016/07/01 21:23:57, sievers ...
4 years, 5 months ago (2016-07-01 21:50:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2119723002/60001
4 years, 5 months ago (2016-07-01 22:13:36 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-02 00:11:39 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-02 00:11:47 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/9a14007087ef20839871a5284ee3974ada1b208c Cr-Commit-Position: refs/heads/master@{#403572}
4 years, 5 months ago (2016-07-02 00:14:21 UTC) #18
hubbe
https://codereview.chromium.org/2119723002/diff/60001/components/display_compositor/buffer_queue.cc File components/display_compositor/buffer_queue.cc (right): https://codereview.chromium.org/2119723002/diff/60001/components/display_compositor/buffer_queue.cc#newcode113 components/display_compositor/buffer_queue.cc:113: if (size == size_ && color_space == color_space_) Isn't ...
4 years, 5 months ago (2016-07-06 21:30:53 UTC) #20
ccameron
4 years, 5 months ago (2016-07-06 21:35:06 UTC) #21
Message was sent while issue was closed.
On 2016/07/06 21:30:53, hubbe wrote:
>
https://codereview.chromium.org/2119723002/diff/60001/components/display_comp...
> File components/display_compositor/buffer_queue.cc (right):
> 
>
https://codereview.chromium.org/2119723002/diff/60001/components/display_comp...
> components/display_compositor/buffer_queue.cc:113: if (size == size_ &&
> color_space == color_space_)
> Isn't this the kind of comparison you were worried about becoming a hotspot
when
> we talked earlier?

Yes. It's not hurting at the moment, but we need a way to optimize this. I'm
thinking to add a sequence number to ICC profiles to elide the comparison.

Powered by Google App Engine
This is Rietveld 408576698