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

Issue 6793005: Add the xrender backend to the window manager. (Closed)

Created:
9 years, 8 months ago by marcheu
Modified:
9 years, 7 months ago
Reviewers:
Daniel Erat
CC:
chromium-os-reviews_chromium.org, Greg Spencer (Chromium), Daniel Erat
Visibility:
Public.

Description

Add the xrender backend to the window manager. Change-Id: Ica06bee5746e536b31d7f7c524f9770276699a91 BUG=None TEST=Define backend=XRENDER in the ebuild, build ChromeOS. Run ChromeOS, check that everything is fine, in particular that the window manager animations work. Open the wrench menu, check that the shadows are there.

Patch Set 1 #

Total comments: 144

Patch Set 2 : Address first round of comments. #

Total comments: 37

Patch Set 3 : Address second round of comments. #

Patch Set 4 : Address second and a half round of comments. #

Patch Set 5 : Add missing trailing _ to root_window and root_geometry. #

Total comments: 14

Patch Set 6 : Address third round of comments. #

Total comments: 4

Patch Set 7 : Address fourth round of comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+838 lines, -203 lines) Patch
M SConstruct View 1 4 chunks +9 lines, -3 lines 0 comments Download
M compositor/gl/opengl_visitor.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M compositor/gl/opengl_visitor.cc View 1 2 3 4 5 6 4 chunks +143 lines, -143 lines 0 comments Download
M compositor/gles/opengles_visitor.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M compositor/gles/opengles_visitor.cc View 1 2 3 4 5 6 5 chunks +40 lines, -40 lines 0 comments Download
M compositor/real_compositor.h View 1 5 chunks +13 lines, -5 lines 0 comments Download
M compositor/real_compositor.cc View 1 2 3 4 5 6 4 chunks +8 lines, -4 lines 0 comments Download
M compositor/texture_data.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
A compositor/xrender/xrender_visitor.h View 1 2 3 4 5 6 1 chunk +88 lines, -0 lines 0 comments Download
A compositor/xrender/xrender_visitor.cc View 1 2 3 4 5 6 1 chunk +309 lines, -0 lines 0 comments Download
M image_container.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M main.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M x11/mock_x_connection.h View 1 2 3 4 5 2 chunks +26 lines, -0 lines 0 comments Download
M x11/real_x_connection.h View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M x11/real_x_connection.cc View 1 2 3 4 5 2 chunks +132 lines, -0 lines 0 comments Download
M x11/x_connection.h View 1 2 3 4 5 2 chunks +33 lines, -0 lines 0 comments Download
M x11/x_types.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
marcheu
9 years, 8 months ago (2011-04-02 02:15:29 UTC) #1
Daniel Erat
http://codereview.chromium.org/6793005/diff/1/SConstruct File SConstruct (right): http://codereview.chromium.org/6793005/diff/1/SConstruct#newcode42 SConstruct:42: base_env.ParseConfig('pkg-config --cflags --libs glib-2.0 x11 xrender') nit: this should ...
9 years, 8 months ago (2011-04-02 14:54:36 UTC) #2
marcheu
http://codereview.chromium.org/6793005/diff/1/x11/real_x_connection.cc File x11/real_x_connection.cc (right): http://codereview.chromium.org/6793005/diff/1/x11/real_x_connection.cc#newcode1368 x11/real_x_connection.cc:1368: char* pixmap_data = (char*)malloc(data_size); On 2011/04/02 14:54:36, Daniel Erat ...
9 years, 8 months ago (2011-04-02 23:31:38 UTC) #3
marcheu
http://codereview.chromium.org/6793005/diff/1/compositor/real_compositor.h File compositor/real_compositor.h (right): http://codereview.chromium.org/6793005/diff/1/compositor/real_compositor.h#newcode28 compositor/real_compositor.h:28: || defined(COMPOSITOR_XRENDER)) On 2011/04/02 14:54:36, Daniel Erat wrote: > ...
9 years, 8 months ago (2011-04-04 19:55:58 UTC) #4
Daniel Erat
Thanks, this is looking pretty good now! http://codereview.chromium.org/6793005/diff/5001/compositor/xrender/xrender_visitor.cc File compositor/xrender/xrender_visitor.cc (right): http://codereview.chromium.org/6793005/diff/5001/compositor/xrender/xrender_visitor.cc#newcode29 compositor/xrender/xrender_visitor.cc:29: pixmap_ = ...
9 years, 8 months ago (2011-04-04 21:16:35 UTC) #5
marcheu
http://codereview.chromium.org/6793005/diff/5001/compositor/xrender/xrender_visitor.cc File compositor/xrender/xrender_visitor.cc (right): http://codereview.chromium.org/6793005/diff/5001/compositor/xrender/xrender_visitor.cc#newcode29 compositor/xrender/xrender_visitor.cc:29: pixmap_ = 0; On 2011/04/04 21:16:35, Daniel Erat wrote: ...
9 years, 8 months ago (2011-04-05 00:23:40 UTC) #6
Daniel Erat
http://codereview.chromium.org/6793005/diff/2004/compositor/xrender/xrender_visitor.cc File compositor/xrender/xrender_visitor.cc (right): http://codereview.chromium.org/6793005/diff/2004/compositor/xrender/xrender_visitor.cc#newcode53 compositor/xrender/xrender_visitor.cc:53: bool XRenderDrawVisitor::FreeXResources() { move this and AllocateXResources() down. the ...
9 years, 8 months ago (2011-04-05 01:35:06 UTC) #7
marcheu
http://codereview.chromium.org/6793005/diff/2004/compositor/xrender/xrender_visitor.cc File compositor/xrender/xrender_visitor.cc (right): http://codereview.chromium.org/6793005/diff/2004/compositor/xrender/xrender_visitor.cc#newcode53 compositor/xrender/xrender_visitor.cc:53: bool XRenderDrawVisitor::FreeXResources() { On 2011/04/05 01:35:06, Daniel Erat wrote: ...
9 years, 8 months ago (2011-04-05 02:07:42 UTC) #8
Daniel Erat
Thanks, LGTM now with two small changes! Please also update the changelist description before committing ...
9 years, 8 months ago (2011-04-05 22:45:19 UTC) #9
marcheu
9 years, 8 months ago (2011-04-06 00:26:07 UTC) #10
http://codereview.chromium.org/6793005/diff/3007/compositor/xrender/xrender_v...
File compositor/xrender/xrender_visitor.cc (right):

http://codereview.chromium.org/6793005/diff/3007/compositor/xrender/xrender_v...
compositor/xrender/xrender_visitor.cc:79: data(new
XRenderPictureData(this->xconn_));
On 2011/04/05 22:45:19, Daniel Erat wrote:
> nit: variable name should come on same line as type:
> 
> scoped_ptr<window_manager::XRenderPictureData> data(
>     new XRenderPictureData(this->xconn_));

Done.

http://codereview.chromium.org/6793005/diff/3007/compositor/xrender/xrender_v...
File compositor/xrender/xrender_visitor.h (right):

http://codereview.chromium.org/6793005/diff/3007/compositor/xrender/xrender_v...
compositor/xrender/xrender_visitor.h:33: void BindImage(const ImageContainer*
container,
On 2011/04/05 22:45:19, Daniel Erat wrote:
> make this be a reference instead of a pointer

Done.

Powered by Google App Engine
This is Rietveld 408576698