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

Issue 11280263: Organize internal properties of cc/ layer types (Closed)

Created:
8 years ago by shawnsingh
Modified:
8 years ago
Reviewers:
danakj, jamesr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, jamesr, enne (OOO)
Visibility:
Public.

Description

Organize internal properties of cc/ layer types One useful way to classify the various properties in cc/ layer data types is: (1) properties given by the user of the cc APIs, and (2) properties that are computed inside of cc code that are needed to correctly draw the layers. This patch organizes properties internally so that as we develop cc code, we are forced to be aware of whether a property is "given" or "computed". Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171323

Patch Set 1 #

Total comments: 2

Patch Set 2 : Complete patch #

Total comments: 12

Patch Set 3 : Addressed all feedback so far #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -434 lines) Patch
M cc/cc.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/damage_tracker_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
A cc/draw_properties.h View 1 2 1 chunk +74 lines, -0 lines 2 comments Download
M cc/layer.h View 1 2 6 chunks +21 lines, -59 lines 0 comments Download
M cc/layer.cc View 1 2 2 chunks +3 lines, -9 lines 0 comments Download
M cc/layer_impl.h View 1 2 7 chunks +24 lines, -59 lines 0 comments Download
M cc/layer_impl.cc View 1 2 7 chunks +19 lines, -19 lines 0 comments Download
M cc/layer_impl_unittest.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M cc/layer_iterator_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layer_sorter_unittest.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_common.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layer_tree_host_common.cc View 1 2 16 chunks +49 lines, -45 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 94 chunks +98 lines, -98 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_unittest.cc View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M cc/nine_patch_layer_impl_unittest.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M cc/occlusion_tracker_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/quad_culler_unittest.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M cc/render_surface_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/solid_color_layer_impl_unittest.cc View 1 2 6 chunks +11 lines, -11 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/tiled_layer_impl_unittest.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M cc/tiled_layer_unittest.cc View 1 2 41 chunks +75 lines, -75 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
shawnsingh
This first patch is incomplete and preliminary. Just wanted to give a taste of what ...
8 years ago (2012-11-30 22:48:12 UTC) #1
danakj
https://codereview.chromium.org/11280263/diff/1/cc/layer_impl.h File cc/layer_impl.h (right): https://codereview.chromium.org/11280263/diff/1/cc/layer_impl.h#newcode40 cc/layer_impl.h:40: struct DrawProperties { If the struct has all the ...
8 years ago (2012-12-01 03:51:40 UTC) #2
shawnsingh
Yeah that's the plan - for both your points. I take it this is a ...
8 years ago (2012-12-01 04:49:05 UTC) #3
danakj
On 2012/12/01 04:49:05, shawnsingh wrote: > Yeah that's the plan - for both your points. ...
8 years ago (2012-12-01 05:09:40 UTC) #4
shawnsingh
PTAL Latest patch separates the struct into its own file, and shares the data between ...
8 years ago (2012-12-02 09:11:07 UTC) #5
shawnsingh
Oh, right. red bots are because of that dependency... silly me.
8 years ago (2012-12-02 09:11:51 UTC) #6
danakj
https://codereview.chromium.org/11280263/diff/3002/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11280263/diff/3002/cc/draw_properties.h#newcode1 cc/draw_properties.h:1: // Copyright 2011 The Chromium Authors. All rights reserved. ...
8 years ago (2012-12-03 18:54:36 UTC) #7
shawnsingh
Thanks for review. By the way, could we re-name calculateDrawTransforms --> calculateDrawProeprties https://codereview.chromium.org/11280263/diff/3002/cc/layer.h File cc/layer.h ...
8 years ago (2012-12-03 19:27:44 UTC) #8
enne (OOO)
On 2012/12/03 19:27:44, shawnsingh wrote: > By the way, could we re-name calculateDrawTransforms --> calculateDrawProperties ...
8 years ago (2012-12-03 21:18:14 UTC) #9
danakj
https://codereview.chromium.org/11280263/diff/3002/cc/layer.h File cc/layer.h (left): https://codereview.chromium.org/11280263/diff/3002/cc/layer.h#oldcode250 cc/layer.h:250: virtual void setContentsScale(float contentsScale) { } On 2012/12/03 21:18:14, ...
8 years ago (2012-12-03 21:29:45 UTC) #10
shawnsingh
/me punts the contentsScale I'll get a new version after the transform tighten lands. ETA ...
8 years ago (2012-12-03 21:44:39 UTC) #11
jamesr
I'm a fan! https://codereview.chromium.org/11280263/diff/3002/cc/draw_properties.h File cc/draw_properties.h (right): https://codereview.chromium.org/11280263/diff/3002/cc/draw_properties.h#newcode29 cc/draw_properties.h:29: gfx::Transform drawTransform; drawProperties().drawTransform is a bit ...
8 years ago (2012-12-04 06:44:32 UTC) #12
danakj
On Mon, Dec 3, 2012 at 2:27 PM, <shawnsingh@chromium.org> wrote: > Thanks for review. > ...
8 years ago (2012-12-04 08:15:46 UTC) #13
shawnsingh
OK this is ready for review again. I also found another round of math-tightening we ...
8 years ago (2012-12-05 03:57:23 UTC) #14
enne (OOO)
lgtm
8 years ago (2012-12-05 18:34:04 UTC) #15
danakj
8 years ago (2012-12-05 18:35:00 UTC) #16
https://codereview.chromium.org/11280263/diff/13001/cc/draw_properties.h
File cc/draw_properties.h (right):

https://codereview.chromium.org/11280263/diff/13001/cc/draw_properties.h#newc...
cc/draw_properties.h:72: } // namespace cc
nit: 2 spaces before //

https://codereview.chromium.org/11280263/diff/13001/cc/draw_properties.h#newc...
cc/draw_properties.h:74: #endif // CC_DRAW_PROPERTIES_H_
nit: 2 spaces

Powered by Google App Engine
This is Rietveld 408576698