|
|
|
Created:
4 years, 10 months ago by Noel Gordon Modified:
4 years, 10 months ago CC:
blink-reviews, scroggo_chromium, pdr., danakj Base URL:
https://chromium.googlesource.com/chromium/blink.git@master Target Ref:
refs/heads/master Project:
blink Visibility:
Public. |
DescriptionRemove deferred image decoding code from ImageDecodeBench
ImageDecodeBench tool does not need or depend on Blink deferred decoding.
Remove code references to deferred decoding. Minor: fix spelling.
BUG=492961, 413479
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197321
Patch Set 1 #
Total comments: 2
Messages
Total messages: 24 (9 generated)
noel@chromium.org changed reviewers: + pkasting@chromium.org
LGTM https://codereview.chromium.org/1185933002/diff/1/Source/platform/image-decod... File Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/1185933002/diff/1/Source/platform/image-decod... Source/platform/image-decoders/ImageDecoder.h:38: #include "wtf/PassOwnPtr.h" Nit: If this header compiled without these before, is it really correct/necessary to move them here?
scroggo@chromium.org changed reviewers: + scroggo@chromium.org
lgtm
https://codereview.chromium.org/1185933002/diff/1/Source/platform/image-decod... File Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/1185933002/diff/1/Source/platform/image-decod... Source/platform/image-decoders/ImageDecoder.h:38: #include "wtf/PassOwnPtr.h" On 2015/06/15 20:18:21, Peter Kasting wrote: > Nit: If this header compiled without these before, is it really > correct/necessary to move them here? It's correct from the include-what-you-use standpoint. Not necessary though, the header was compiling already, meaning the transitive closure of include files somehow includes PassOwnPtr and AtomicallyInitializedStaticReference that ImageDecoder.h uses in-line. If I remove the extra includes I added to ImageDecoder.h here, but don't include them in ImageDecodebench.cpp, then the compiler complains ... nkGCPlugin.dylib -Xclang -add-plugin -Xclang blink-gc-plugin -c ../../third_party/WebKit/Source/web/ImageDecodeBench.cpp -o obj/third_party/WebKit/Source/web/image_decode_bench.ImageDecodeBench.o In file included from ../../third_party/WebKit/Source/web/ImageDecodeBench.cpp:33: ../../third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:241:46: error: 'OutputDeviceProfile' does not refer to a value AtomicallyInitializedStaticReference(OutputDeviceProfile, outputDeviceProfile, new OutputDeviceProfile); # missing reference to AtomicallyInitializedStaticReference, it's in "wtf/Threading.h". ./../third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:282:56: error: implicit instantiation of undefined template 'WTF::PassOwnPtr<blink::ImagePlanes>' virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { } ^ ../../third_party/WebKit/Source/wtf/Forward.h:29:32: note: template is declared here template<typename T> class PassOwnPtr; # missing reference to PassOwnPtr, need <wtf/PassOwnPtr.h>. So get the bench to compile, I need put those two includes _ahead_ of ImageDecoder.h it seems. I'm fine with that too and might do that.
The CQ bit was checked by noel@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from scroggo@chromium.org, pkasting@chromium.org Link to the patchset: https://codereview.chromium.org/1185933002/#ps20001 (title: "Remove changes to ImageDecoder.h")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185933002/20001
noel@chromium.org changed reviewers: + pdr@chromium.org
+pdr, will need you approve too to land I think.
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/3...)
https://codereview.chromium.org/1185933002/diff/20001/Source/web/ImageDecodeB... File Source/web/ImageDecodeBench.cpp (right): https://codereview.chromium.org/1185933002/diff/20001/Source/web/ImageDecodeB... Source/web/ImageDecodeBench.cpp:31: #include "wtf/PassOwnPtr.h" These should all be in alphabetical order. If putting them that way breaks the compile, then various headers need to have their #includes updated.
https://codereview.chromium.org/1185933002/diff/20001/Source/web/ImageDecodeB... File Source/web/ImageDecodeBench.cpp (right): https://codereview.chromium.org/1185933002/diff/20001/Source/web/ImageDecodeB... Source/web/ImageDecodeBench.cpp:31: #include "wtf/PassOwnPtr.h" On 2015/06/16 21:29:03, Peter Kasting wrote: > These should all be in alphabetical order. Exactly. > If putting them that way breaks the > compile, then various headers need to have their #includes updated. Yes, and why I updated ImageDecode.h in patch set #1 :)
On 2015/06/17 11:14:44, noel gordon wrote: > https://codereview.chromium.org/1185933002/diff/20001/Source/web/ImageDecodeB... > File Source/web/ImageDecodeBench.cpp (right): > > https://codereview.chromium.org/1185933002/diff/20001/Source/web/ImageDecodeB... > Source/web/ImageDecodeBench.cpp:31: #include "wtf/PassOwnPtr.h" > On 2015/06/16 21:29:03, Peter Kasting wrote: > > These should all be in alphabetical order. > > Exactly. > > > If putting them that way breaks the > > compile, then various headers need to have their #includes updated. > > Yes, and why I updated ImageDecode.h in patch set #1 :) OK, then update it. If the only reason it previously compiled is that some consumers violated include ordering rules, that should be fixed.
On 2015/06/17 20:20:43, Peter Kasting wrote: > > > If putting them that way breaks the > > > compile, then various headers need to have their #includes updated. > > > > Yes, and why I updated ImageDecode.h in patch set #1 :) > > OK, then update it. If the only reason it previously compiled is that some > consumers violated include ordering rules, that should be fixed. OK thanks. Deleting patch set #2, will submit patch set #1.
Patchset #2 (id:20001) has been deleted
noel@chromium.org changed reviewers: + tkent@chromium.org
+tkent, need your approval to submit.
lgtm
The CQ bit was checked by noel@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185933002/1
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=197321 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chromium Code Reviews