RESOLVED FIXED 45133
[chromium] Make a public flag for how DRT generates bitmaps on Linux
https://bugs.webkit.org/show_bug.cgi?id=45133
Summary [chromium] Make a public flag for how DRT generates bitmaps on Linux
Tony Chang
Reported 2010-09-02 14:34:21 PDT
[chromium] Make a public flag for how DRT generates bitmaps on Linux
Attachments
Patch (8.24 KB, patch)
2010-09-02 14:36 PDT, Tony Chang
no flags
Patch (3.84 KB, patch)
2010-09-02 15:44 PDT, Tony Chang
fishd: review+
fishd: commit-queue-
Tony Chang
Comment 1 2010-09-02 14:36:44 PDT
Tony Chang
Comment 2 2010-09-02 14:42:47 PDT
I'm trying to fix http://code.google.com/p/chromium/issues/detail?id=21386. Here is my plan: 1) Expose a variable in WebKit that determines whether or not to call makeOpaque (this patch). 2) In Chromium, switch test_shell to use that flag. 3) In WebKit, flip the flag and checkin a bunch of new checksums. 4) In Chromium, remove the flag in test_shell and have us always call makeOpaque on Linux and Windows. 5) In WebKit, remove the flag in DRT and remove the variable added in (1). I'm not too excited about where I put the variable or how I named it. Suggestions welcome.
Darin Fisher (:fishd, Google)
Comment 3 2010-09-02 15:18:34 PDT
Comment on attachment 66413 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=66413&action=prettypatch > WebKit/chromium/public/DumpRenderTreeDefaults.h:36 > +extern const bool makeLinuxChecksumOpaque; it seems like this would be better done without a globally exported variable. how about a setter and a getter in the usual fashion? also, why the DumpRenderTree namespace in the WebKit API's public directory? can you just place these methods in WebKit.h next to setLayoutTestMode/layoutTestMode?
Tony Chang
Comment 4 2010-09-02 15:44:39 PDT
Tony Chang
Comment 5 2010-09-02 15:45:44 PDT
(In reply to comment #3) > can you just place these methods in WebKit.h next to setLayoutTestMode/layoutTestMode? I didn't see WebKit.h. Yes, this is a much better place for this.
Tony Chang
Comment 6 2010-09-07 14:03:11 PDT
Darin, can you take a look at the revised patch?
Darin Fisher (:fishd, Google)
Comment 7 2010-09-07 14:34:53 PDT
Comment on attachment 66424 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=66424&action=prettypatch > WebKit/chromium/public/WebKit.h:60 > +WEBKIT_API bool makeLinuxChecksumOpaque(); this method name sounds like something that is a command. hey you, go make it opaque. but the signature looks more like a getter. how about "isLinuxChecksumOpaque"? that said, i'm not sure what it means for a checksum to be opaque. hmm... how about "areLayoutTestImagesOpaque"? R=me modulo this re-naming suggestion
Darin Fisher (:fishd, Google)
Comment 8 2010-09-07 14:35:58 PDT
Also, if the comment could say that this flag describes the format of layout test image baselines that would be helpful.
Tony Chang
Comment 9 2010-09-07 15:21:14 PDT
Note You need to log in before you can comment on or make changes to this bug.