|
|
Chromium Code Reviews
Descriptioncc : Split TransformTree::ComputeTransform
ComputeTransform is too general as we can call it with any transform nodes.
To to able to effectively use the new transforms caching system, we have
to know more information. I added ComputeTransformsToTarget for this
reason. This CL adds ComputeTransformsFromTarget and
ComputeTranslation.
With this CL, TransformTree::ComputeTransforms is only called by tests,
for computing target space transform while updating transform tree,
and from these new functions.
Also changed the return value of TransformTree::CombineTransformBetween
from bool to void as it always returns true.
BUG=622372
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/4a2bde300742723c46df1f1917636726d46389c7
Cr-Commit-Position: refs/heads/master@{#408409}
Patch Set 1 #
Total comments: 4
Patch Set 2 : comments #Patch Set 3 : . #
Total comments: 1
Patch Set 4 : comment #Patch Set 5 : . #
Total comments: 1
Messages
Total messages: 49 (34 generated)
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform during updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform during updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform during updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform during updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform during updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform while updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform while updating transform tree, which will be eventually deleted. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform while updating transform tree, which will be deleted eventually. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
jaydasika@chromium.org changed reviewers: + ajuma@chromium.org, sunxd@chromium.org, weiliangc@chromium.org
PTAL
The CQ bit was checked by jaydasika@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Generally looks good, just some nits about ComputeTransformFromSourceToParent: https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.cc#n... cc/trees/property_tree.cc:161: bool TransformTree::ComputeTransformFromSourceToParent( Since this currently has essentially the same implementation as ComputeTransform, can the common parts go into a helper function for now? https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.h File cc/trees/property_tree.h (right): https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.h#ne... cc/trees/property_tree.h:159: gfx::Transform* transform) const; It'd be good if there was some way to enforce that this is used only for source-to-parent transforms rather than arbitrary transforms. One idea: rename this ComputeTranslation() with a comment that this can only be called between pairs of nodes where the transform between nodes is a 2d translation, and then DCHECK that the computed transform is indeed a 2d translation before returning?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #3 (id:40001) has been deleted
https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.cc#n... cc/trees/property_tree.cc:161: bool TransformTree::ComputeTransformFromSourceToParent( On 2016/07/27 15:57:11, ajuma wrote: > Since this currently has essentially the same implementation as > ComputeTransform, can the common parts go into a helper function for now? Done. https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.h File cc/trees/property_tree.h (right): https://codereview.chromium.org/2180223005/diff/1/cc/trees/property_tree.h#ne... cc/trees/property_tree.h:159: gfx::Transform* transform) const; On 2016/07/27 15:57:11, ajuma wrote: > It'd be good if there was some way to enforce that this is used only for > source-to-parent transforms rather than arbitrary transforms. One idea: rename > this ComputeTranslation() with a comment that this can only be called between > pairs of nodes where the transform between nodes is a 2d translation, and then > DCHECK that the computed transform is indeed a 2d translation before returning? Done.
The CQ bit was checked by jaydasika@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTransformsFromSourceToParent. With this CL, TransformTree::ComputeTransforms is only called by tests and for computing target space transform while updating transform tree, which will be deleted eventually. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_blink_rel on master.tryserver.blink (JOB_FAILED, no build URL)
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 ==========
lgtm https://codereview.chromium.org/2180223005/diff/60001/cc/trees/property_tree.h File cc/trees/property_tree.h (right): https://codereview.chromium.org/2180223005/diff/60001/cc/trees/property_tree.... cc/trees/property_tree.h:157: bool ComputeTranslation(int source_id, Please add a comment explaining what this does and the conditions that source_id and dest_id must satisfy (e.g. that the transform between them must be at most a translation).
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ==========
The CQ bit was checked by jaydasika@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from ajuma@chromium.org Link to the patchset: https://codereview.chromium.org/2180223005/#ps80001 (title: "comment")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Your CL was about to rely on recently removed CQ feature(s): * master.tryserver.blink builder linux_blink_rel was renamed to linux_precise_blink_rel (http://crbug.com/590036)
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
The CQ bit was checked by jaydasika@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by jaydasika@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by jaydasika@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2180223005/diff/100001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2180223005/diff/100001/cc/trees/property_tree... cc/trees/property_tree.cc:166: transform->IsApproximatelyIdentityOrTranslation(SkDoubleToMScalar(1e-4))); Had to change this as some browser tests are failing on android.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/07/28 02:18:04, jaydasika wrote: > https://codereview.chromium.org/2180223005/diff/100001/cc/trees/property_tree.cc > File cc/trees/property_tree.cc (right): > > https://codereview.chromium.org/2180223005/diff/100001/cc/trees/property_tree... > cc/trees/property_tree.cc:166: > transform->IsApproximatelyIdentityOrTranslation(SkDoubleToMScalar(1e-4))); > Had to change this as some browser tests are failing on android. Still lgtm
The CQ bit was checked by jaydasika@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
Message was sent while issue was closed.
Committed patchset #5 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== cc : Split TransformTree::ComputeTransform ComputeTransform is too general as we can call it with any transform nodes. To to able to effectively use the new transforms caching system, we have to know more information. I added ComputeTransformsToTarget for this reason. This CL adds ComputeTransformsFromTarget and ComputeTranslation. With this CL, TransformTree::ComputeTransforms is only called by tests, for computing target space transform while updating transform tree, and from these new functions. Also changed the return value of TransformTree::CombineTransformBetween from bool to void as it always returns true. BUG=622372 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/4a2bde300742723c46df1f1917636726d46389c7 Cr-Commit-Position: refs/heads/master@{#408409} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/4a2bde300742723c46df1f1917636726d46389c7 Cr-Commit-Position: refs/heads/master@{#408409} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
