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

Issue 42056: Basic windowless plugins, try 2. (Closed)

Created:
11 years, 9 months ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, jam
Visibility:
Public.

Description

Basic windowless plugins, try 2. In response to Dean's comment on http://codereview.chromium.org/39105, I redid that patch to put the X munging into the plugin implementation. This won't work for multiproc, but it's near the correct place and many things will need to be changed for multiproc.

Patch Set 1 #

Patch Set 2 : simpler #

Patch Set 3 : remove extra include #

Total comments: 18

Patch Set 4 : review comments + rebase #

Patch Set 5 : compiles #

Total comments: 2

Patch Set 6 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -55 lines) Patch
M base/gfx/native_widget_types.h View 2 chunks +2 lines, -3 lines 0 comments Download
M skia/ext/bitmap_platform_device_linux.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M skia/ext/platform_canvas_linux.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M skia/ext/platform_canvas_linux.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M skia/ext/platform_device_linux.h View 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_host.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M webkit/glue/plugins/plugin_instance.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_instance.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl_gtk.cc View 1 2 3 4 5 10 chunks +94 lines, -39 lines 0 comments Download
M webkit/glue/webplugin_impl.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Evan Martin
CC jam FYI, it's almost identical in implementation to the previous code but some stuff ...
11 years, 9 months ago (2009-03-11 01:07:16 UTC) #1
Dean McNamee
This looks super good. Does it all seem to work well? http://codereview.chromium.org/42056/diff/1002/25 File skia/ext/bitmap_platform_device_linux.h (right): ...
11 years, 9 months ago (2009-03-11 11:34:28 UTC) #2
Amanda Walker
http://codereview.chromium.org/42056/diff/1002/34 File webkit/glue/webplugin_impl.cc (right): http://codereview.chromium.org/42056/diff/1002/34#newcode713 Line 713: gfx::NativeDrawingContext context = gc->platformContext(); Yes, pending some cleanup ...
11 years, 9 months ago (2009-03-11 13:22:16 UTC) #3
Evan Martin
new upload http://codereview.chromium.org/42056/diff/1002/25 File skia/ext/bitmap_platform_device_linux.h (right): http://codereview.chromium.org/42056/diff/1002/25#newcode88 Line 88: virtual cairo_surface_t* beginPlatformPaint() { return surface(); ...
11 years, 9 months ago (2009-03-12 23:41:19 UTC) #4
Dean McNamee
11 years, 9 months ago (2009-03-13 13:42:08 UTC) #5
LG!

http://codereview.chromium.org/42056/diff/60/3009
File skia/ext/platform_canvas_linux.h (right):

http://codereview.chromium.org/42056/diff/60/3009#newcode39
Line 39: // endPlatformPaint is a no-op; it is used for symmetry with Windows.
I don't see the point of mentioning plugins here, windows uses
beginPlatformPaint for other stuff, and I could see us doing it too if we wanted
to drop to cairo/pango or something.  Right now it makes it sound plugin
specific.

http://codereview.chromium.org/42056/diff/60/3015
File webkit/glue/plugins/webplugin_delegate_impl_gtk.cc (right):

http://codereview.chromium.org/42056/diff/60/3015#newcode532
Line 532: // TODO(evanm): we leak the entire "extra" struct, including the
colormap.
Isn't SetWindow called a lot (ie won't this leak be bad?)

Powered by Google App Engine
This is Rietveld 408576698