Move use of DisplayItemList's vector behind an explicit DisplayItems interface.
This is a step toward having an interface which can be implemented instead
by cc via WebDisplayItemList. In particular, the goal is to remove the
reliance on concrete blink::DisplayItem objects being stored.
BUG=484943
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196732
This doesn't seem to have a perf impact, and if all goes well, will be ...
4 years, 10 months ago
(2015-06-08 19:26:32 UTC)
#4
This doesn't seem to have a perf impact, and if all goes well, will be replaced
soon by an implementation using WebDisplayItemList instead of storing a vector.
This abstraction should make it clear what kind of access to the paint list is
possible, so that the same thing can be written atop cc's representation, which
won't store OwnPtr<blink::DisplayItem> internally.
chrishtr
lgtm https://codereview.chromium.org/1157653005/diff/80001/Source/platform/graphics/paint/DisplayItems.h File Source/platform/graphics/paint/DisplayItems.h (right): https://codereview.chromium.org/1157653005/diff/80001/Source/platform/graphics/paint/DisplayItems.h#newcode38 Source/platform/graphics/paint/DisplayItems.h:38: // TODO(jbroman): Clarify the purpose of this. I ...
4 years, 10 months ago
(2015-06-08 23:03:05 UTC)
#5
https://codereview.chromium.org/1157653005/diff/80001/Source/platform/graphics/paint/DisplayItems.h File Source/platform/graphics/paint/DisplayItems.h (right): https://codereview.chromium.org/1157653005/diff/80001/Source/platform/graphics/paint/DisplayItems.h#newcode38 Source/platform/graphics/paint/DisplayItems.h:38: // TODO(jbroman): Clarify the purpose of this. On 2015/06/08 ...
4 years, 10 months ago
(2015-06-09 00:00:02 UTC)
#6
https://codereview.chromium.org/1157653005/diff/80001/Source/platform/graphic...
File Source/platform/graphics/paint/DisplayItems.h (right):
https://codereview.chromium.org/1157653005/diff/80001/Source/platform/graphic...
Source/platform/graphics/paint/DisplayItems.h:38: // TODO(jbroman): Clarify the
purpose of this.
On 2015/06/08 23:03:05, chrishtr wrote:
> I agree, this method is pretty weird as named. What's the plan going forward?
I think it's currently only used by the code that checks that cached display
items are used in appropriate cases.
The appropriate followup step would be to figure out whether we do want to have
a flag of this type, and if so, to have a boolean stored in Blink's sidecar data
to represent that state (something like m_usedByMergeAlgorithm).
Currently, this clears the OwnPtr holding the display item, hence the name
"gone" for now.
jbroman
The CQ bit was checked by jbroman@chromium.org
4 years, 10 months ago
(2015-06-09 00:00:05 UTC)
#7
Issue 1157653005: Move use of DisplayItemList's vector behind an explicit DisplayItems interface.
(Closed)
Created 4 years, 10 months ago by jbroman
Modified 4 years, 10 months ago
Reviewers: chrishtr, pdr.
Base URL: svn://svn.chromium.org/blink/trunk
Comments: 2