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

Issue 8486020: compositor_unittests target is unimplmented on Mac (Closed)

Created:
9 years, 1 month ago by dhollowa
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Ian Vollick, piman+watch_chromium.org, jonathan.backer, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

compositor_unittests target is unimplmented on Mac Adds necessary pieces to get the WebKit compositor working with compositor_unittests target on Mac. Required gyp build flags are: 'use_aura': 1, 'use_webkit_compositor': 1, 'use_skia': 1, BUG=104390, 104555 TEST=compositor_unittests --gtest_filter=LayerWithRealCompositorTest.* passes and shows correct visual results. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110875

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address Nico's comments (#2) #

Total comments: 6

Patch Set 3 : Address piman's comments (#6) #

Total comments: 12

Patch Set 4 : Part 2 of addressing piman's comments (#6). #

Patch Set 5 : Typo. #

Patch Set 6 : Activate tween on Mac (piman #12). #

Patch Set 7 : Address kbr's comments (#14) #

Total comments: 4

Patch Set 8 : Address kbr's comments (#19) #

Total comments: 2

Patch Set 9 : Rebase and nit. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -177 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_document.h View 1 chunk +1 line, -1 line 0 comments Download
M printing/printing.gyp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M ui/base/animation/tween.h View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download
M ui/base/animation/tween.cc View 1 2 3 4 5 3 chunks +0 lines, -5 lines 0 comments Download
M ui/gfx/compositor/compositor.gyp View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -4 lines 0 comments Download
M ui/gfx/compositor/test/test_compositor_host.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A ui/gfx/compositor/test/test_compositor_host_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +146 lines, -0 lines 0 comments Download
M ui/gfx/compositor/test/test_suite.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/compositor/test/test_suite.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/gl/gl.gyp View 1 2 2 chunks +9 lines, -1 line 0 comments Download
D ui/gfx/gl/gl_context_mac.cc View 1 chunk +0 lines, -143 lines 0 comments Download
A + ui/gfx/gl/gl_context_mac.mm View 1 2 2 chunks +17 lines, -5 lines 0 comments Download
A ui/gfx/gl/gl_context_nsview.h View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
A ui/gfx/gl/gl_context_nsview.mm View 1 2 3 4 5 6 7 1 chunk +92 lines, -0 lines 1 comment Download
M ui/gfx/gl/gl_surface_mac.cc View 1 2 2 chunks +25 lines, -1 line 0 comments Download
A ui/gfx/gl/gl_surface_nsview.h View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 1 comment Download
A ui/gfx/gl/gl_surface_nsview.mm View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
M ui/gfx/native_widget_types.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M ui/gfx/path.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
dhollowa
Hi Folks, this CL puts the basic NSView-backed WebKit compositor in place on Mac. The ...
9 years, 1 month ago (2011-11-16 18:55:25 UTC) #1
Nico
mac bits basically lgtm http://codereview.chromium.org/8486020/diff/1/printing/printing.gyp File printing/printing.gyp (right): http://codereview.chromium.org/8486020/diff/1/printing/printing.gyp#newcode114 printing/printing.gyp:114: ['OS=="mac" and use_aura==1',{ Will printing ...
9 years, 1 month ago (2011-11-16 19:11:13 UTC) #2
dhollowa
http://codereview.chromium.org/8486020/diff/1/printing/printing.gyp File printing/printing.gyp (right): http://codereview.chromium.org/8486020/diff/1/printing/printing.gyp#newcode114 printing/printing.gyp:114: ['OS=="mac" and use_aura==1',{ On 2011/11/16 19:11:13, Nico wrote: > ...
9 years, 1 month ago (2011-11-16 19:59:18 UTC) #3
Nico
http://codereview.chromium.org/8486020/diff/1/ui/gfx/compositor/test_compositor_host_mac.mm File ui/gfx/compositor/test_compositor_host_mac.mm (right): http://codereview.chromium.org/8486020/diff/1/ui/gfx/compositor/test_compositor_host_mac.mm#newcode72 ui/gfx/compositor/test_compositor_host_mac.mm:72: [NSApplication sharedApplication]; On 2011/11/16 19:59:18, dhollowa wrote: > On ...
9 years, 1 month ago (2011-11-16 20:04:22 UTC) #4
dhollowa
http://codereview.chromium.org/8486020/diff/1/ui/gfx/compositor/test_compositor_host_mac.mm File ui/gfx/compositor/test_compositor_host_mac.mm (right): http://codereview.chromium.org/8486020/diff/1/ui/gfx/compositor/test_compositor_host_mac.mm#newcode72 ui/gfx/compositor/test_compositor_host_mac.mm:72: [NSApplication sharedApplication]; On 2011/11/16 20:04:22, Nico wrote: > On ...
9 years, 1 month ago (2011-11-16 20:25:24 UTC) #5
piman
http://codereview.chromium.org/8486020/diff/5002/ui/gfx/compositor/layer_animation_element.cc File ui/gfx/compositor/layer_animation_element.cc (right): http://codereview.chromium.org/8486020/diff/5002/ui/gfx/compositor/layer_animation_element.cc#newcode49 ui/gfx/compositor/layer_animation_element.cc:49: #if !defined(OS_MACOSX) Why? I don't see what's mac-adverse here. ...
9 years, 1 month ago (2011-11-16 20:55:59 UTC) #6
dhollowa
http://codereview.chromium.org/8486020/diff/5002/ui/gfx/compositor/layer_animation_element.cc File ui/gfx/compositor/layer_animation_element.cc (right): http://codereview.chromium.org/8486020/diff/5002/ui/gfx/compositor/layer_animation_element.cc#newcode49 ui/gfx/compositor/layer_animation_element.cc:49: #if !defined(OS_MACOSX) ui/base/animation/tween.h:41 is #ifdef'd out on Mac. My ...
9 years, 1 month ago (2011-11-16 23:28:58 UTC) #7
piman
I could probably live with USE_AURA for now. But I'd prefer it to be cleaned ...
9 years, 1 month ago (2011-11-16 23:42:22 UTC) #8
dhollowa
On 2011/11/16 23:42:22, piman wrote: > I could probably live with USE_AURA for now. But ...
9 years, 1 month ago (2011-11-16 23:59:51 UTC) #9
dhollowa
On 2011/11/16 23:59:51, dhollowa wrote: > On 2011/11/16 23:42:22, piman wrote: > > I could ...
9 years, 1 month ago (2011-11-17 00:04:01 UTC) #10
piman
On 2011/11/16 23:59:51, dhollowa wrote: > On 2011/11/16 23:42:22, piman wrote: > > I could ...
9 years, 1 month ago (2011-11-17 00:09:47 UTC) #11
piman
On 2011/11/17 00:04:01, dhollowa wrote: > On 2011/11/16 23:59:51, dhollowa wrote: > > On 2011/11/16 ...
9 years, 1 month ago (2011-11-17 00:10:15 UTC) #12
dhollowa
On 2011/11/17 00:09:47, piman wrote: > On 2011/11/16 23:59:51, dhollowa wrote: > > On 2011/11/16 ...
9 years, 1 month ago (2011-11-17 00:10:52 UTC) #13
Ken Russell (switch to Gerrit)
The ui/gfx/gl changes mostly look good. A few relatively minor issues and a couple of ...
9 years, 1 month ago (2011-11-17 00:14:40 UTC) #14
piman
LGTM for my part
9 years, 1 month ago (2011-11-17 00:31:32 UTC) #15
dhollowa
On 2011/11/17 00:10:15, piman wrote: > On 2011/11/17 00:04:01, dhollowa wrote: > > On 2011/11/16 ...
9 years, 1 month ago (2011-11-17 00:35:27 UTC) #16
dhollowa
http://codereview.chromium.org/8486020/diff/8001/ui/gfx/gl/gl_context_nsview.h File ui/gfx/gl/gl_context_nsview.h (right): http://codereview.chromium.org/8486020/diff/8001/ui/gfx/gl/gl_context_nsview.h#newcode21 ui/gfx/gl/gl_context_nsview.h:21: #endif On 2011/11/17 00:14:40, kbr wrote: > Does this ...
9 years, 1 month ago (2011-11-17 01:41:51 UTC) #17
Ben Goodger (Google)
General LGTM for ui/
9 years, 1 month ago (2011-11-17 20:55:29 UTC) #18
Ken Russell (switch to Gerrit)
LGTM with the following change made. http://codereview.chromium.org/8486020/diff/15025/ui/gfx/compositor/test_compositor_host_mac.mm File ui/gfx/compositor/test_compositor_host_mac.mm (right): http://codereview.chromium.org/8486020/diff/15025/ui/gfx/compositor/test_compositor_host_mac.mm#newcode42 ui/gfx/compositor/test_compositor_host_mac.mm:42: [context setView:self]; The ...
9 years, 1 month ago (2011-11-17 22:28:18 UTC) #19
dhollowa
http://codereview.chromium.org/8486020/diff/15025/ui/gfx/compositor/test_compositor_host_mac.mm File ui/gfx/compositor/test_compositor_host_mac.mm (right): http://codereview.chromium.org/8486020/diff/15025/ui/gfx/compositor/test_compositor_host_mac.mm#newcode42 ui/gfx/compositor/test_compositor_host_mac.mm:42: [context setView:self]; On 2011/11/17 22:28:18, kbr wrote: > The ...
9 years, 1 month ago (2011-11-18 00:50:37 UTC) #20
Ken Russell (switch to Gerrit)
Thanks, looks great. LGTM
9 years, 1 month ago (2011-11-18 01:11:00 UTC) #21
dhollowa
+tony, +jam for webkit/glue, webkit/plugins OWNERS respectively.
9 years, 1 month ago (2011-11-18 16:45:22 UTC) #22
tony
webkit/glue LGTM
9 years, 1 month ago (2011-11-18 18:48:36 UTC) #23
tony
http://codereview.chromium.org/8486020/diff/20001/webkit/glue/webkit_glue.gypi File webkit/glue/webkit_glue.gypi (right): http://codereview.chromium.org/8486020/diff/20001/webkit/glue/webkit_glue.gypi#newcode474 webkit/glue/webkit_glue.gypi:474: ['exclude', '^../plugins/npapi/webplugin_delegate_impl_mac.mm'], Nit: This is a regex so the ...
9 years, 1 month ago (2011-11-18 18:50:10 UTC) #24
jam
webkit/plugins lgtm
9 years, 1 month ago (2011-11-18 19:24:36 UTC) #25
dhollowa
http://codereview.chromium.org/8486020/diff/20001/webkit/glue/webkit_glue.gypi File webkit/glue/webkit_glue.gypi (right): http://codereview.chromium.org/8486020/diff/20001/webkit/glue/webkit_glue.gypi#newcode474 webkit/glue/webkit_glue.gypi:474: ['exclude', '^../plugins/npapi/webplugin_delegate_impl_mac.mm'], On 2011/11/18 18:50:10, tony wrote: > Nit: ...
9 years, 1 month ago (2011-11-19 02:12:52 UTC) #26
apatrick_chromium
9 years, 1 month ago (2011-11-21 23:34:45 UTC) #27
Sorry I missed this one going by. A couple of points.

http://codereview.chromium.org/8486020/diff/27001/ui/gfx/gl/gl_context_nsview.mm
File ui/gfx/gl/gl_context_nsview.mm (right):

http://codereview.chromium.org/8486020/diff/27001/ui/gfx/gl/gl_context_nsview...
ui/gfx/gl/gl_context_nsview.mm:50:
static_cast<GLSurfaceNSView*>(surface)->SetGLContext(this);
GLContext implementations should not make assumptions about the concrete type of
a GLSurface because the object might actually be an adapter around the
underlying GLSurface. We do this on other platforms so it would be nice not to
make the assumption on mac.

http://codereview.chromium.org/8486020/diff/27001/ui/gfx/gl/gl_surface_nsview.h
File ui/gfx/gl/gl_surface_nsview.h (right):

http://codereview.chromium.org/8486020/diff/27001/ui/gfx/gl/gl_surface_nsview...
ui/gfx/gl/gl_surface_nsview.h:29: virtual void* GetHandle() OVERRIDE;
It would be safer to implement OnMakeCurrent here instead and cache off the
context at that point. That would also make this code work in the event that a
surface is made current with a surface that is different to the one that was
passed to GLContextNSView::Initialize.

Powered by Google App Engine
This is Rietveld 408576698