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

Issue 331533002: Use a struct for cc::Surface ids for more type safety (Closed)

Created:
6 years, 6 months ago by jamesr
Modified:
6 years, 6 months ago
Reviewers:
jschuh, piman
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Visibility:
Public.

Description

Use a struct for cc::Surface ids for more type safety We currently represent surface ids as just an int, but may want to move to a richer data structure in the future. Identifiers that are ints are also pretty easy to confuse with other ints. R=piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276923

Patch Set 1 #

Total comments: 3

Patch Set 2 : add is_null and explicit ctor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -69 lines) Patch
M cc/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/surface_layer.h View 3 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/surface_layer.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M cc/layers/surface_layer_impl.h View 3 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/surface_layer_impl.cc View 1 4 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/surface_layer_impl_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/quads/surface_draw_quad.h View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/quads/surface_draw_quad.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M cc/surfaces/display.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M cc/surfaces/display.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface.h View 3 chunks +3 lines, -2 lines 0 comments Download
M cc/surfaces/surface.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_aggregator.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 7 chunks +14 lines, -14 lines 0 comments Download
M cc/surfaces/surface_aggregator_test_helpers.h View 4 chunks +3 lines, -3 lines 0 comments Download
M cc/surfaces/surface_aggregator_test_helpers.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 3 chunks +8 lines, -3 lines 0 comments Download
A cc/surfaces/surface_id.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 chunk +5 lines, -5 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
M cc/surfaces/surface_unittest.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/compositor/surface_display_output_surface.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/cc_messages.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
jamesr
piman@ - please review jschuh@ - please review content/common/cc_messages*. I'm switching an int to a ...
6 years, 6 months ago (2014-06-11 23:13:48 UTC) #1
jschuh
ipc security lgtm
6 years, 6 months ago (2014-06-11 23:31:16 UTC) #2
piman
lgtm https://codereview.chromium.org/331533002/diff/1/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/331533002/diff/1/cc/layers/surface_layer.cc#newcode30 cc/layers/surface_layer.cc:30: return surface_id_.id != 0 && Layer::DrawsContent(); nit: is ...
6 years, 6 months ago (2014-06-11 23:48:59 UTC) #3
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 6 months ago (2014-06-12 21:28:05 UTC) #4
jamesr
Done and done, thanks.
6 years, 6 months ago (2014-06-12 21:30:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/331533002/20001
6 years, 6 months ago (2014-06-12 21:30:17 UTC) #6
piman
lgtm
6 years, 6 months ago (2014-06-13 00:48:11 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 04:20:19 UTC) #8
Message was sent while issue was closed.
Change committed as 276923

Powered by Google App Engine
This is Rietveld 408576698