Bug 61802 - [Qt][WK2] Add QGLWidget viewport support to MiniBrowser
Summary: [Qt][WK2] Add QGLWidget viewport support to MiniBrowser
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2011-05-31 13:26 PDT by Viatcheslav Ostapenko
Modified: 2011-06-01 10:55 PDT (History)
2 users (show)

See Also:


Attachments
Add QGLWidget viewport mode to minibrowser app. (6.26 KB, patch)
2011-05-31 13:30 PDT, Viatcheslav Ostapenko
no flags Details | Formatted Diff | Diff
Fix style problem (6.27 KB, patch)
2011-05-31 13:39 PDT, Viatcheslav Ostapenko
hausmann: review+
Details | Formatted Diff | Diff
Fix issues from Simon review. (4.86 KB, patch)
2011-05-31 16:21 PDT, Viatcheslav Ostapenko
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viatcheslav Ostapenko 2011-05-31 13:26:19 PDT
Add command line parameter and menu item to MiniBrowser application enabling use of QGLWidget for browser viewport.
Comment 1 Viatcheslav Ostapenko 2011-05-31 13:30:52 PDT
Created attachment 95472 [details]
Add QGLWidget viewport mode to minibrowser app.
Comment 2 WebKit Review Bot 2011-05-31 13:34:05 PDT
Attachment 95472 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/MiniBrowser/qt/B..." exit_code: 1

Tools/MiniBrowser/qt/BrowserView.cpp:48:  Missing space before ( in if(  [whitespace/parens] [5]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Viatcheslav Ostapenko 2011-05-31 13:39:08 PDT
Created attachment 95476 [details]
Fix style problem
Comment 4 Simon Hausmann 2011-05-31 15:04:26 PDT
Comment on attachment 95476 [details]
Fix style problem

View in context: https://bugs.webkit.org/attachment.cgi?id=95476&action=review

r=me

At some point we should probably make that simply the default...

> Tools/MiniBrowser/qt/BrowserView.cpp:49
> +        setViewport(new QGLWidget());

Nitpick, here you use new GLWidget() and further down just "new QGLWidget"

> Tools/MiniBrowser/qt/BrowserView.cpp:76
> +void BrowserView::toggleGLViewport(bool useQGLWidgetViewport)
> +{
> +#if defined(QT_CONFIGURED_WITH_OPENGL)
> +    setViewport(useQGLWidgetViewport ? new QGLWidget : 0);
> +#endif
> +}

setViewport is a public method, so this code doesn't actually have to live in BrowserView but could also be done from the outside.
Comment 5 Viatcheslav Ostapenko 2011-05-31 15:59:18 PDT
(In reply to comment #4)
> (From update of attachment 95476 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=95476&action=review
> 
> r=me
> 
> At some point we should probably make that simply the default...
> 
> > Tools/MiniBrowser/qt/BrowserView.cpp:49
> > +        setViewport(new QGLWidget());
> 
> Nitpick, here you use new GLWidget() and further down just "new QGLWidget"
> 
> > Tools/MiniBrowser/qt/BrowserView.cpp:76
> > +void BrowserView::toggleGLViewport(bool useQGLWidgetViewport)
> > +{
> > +#if defined(QT_CONFIGURED_WITH_OPENGL)
> > +    setViewport(useQGLWidgetViewport ? new QGLWidget : 0);
> > +#endif
> > +}
> 
> setViewport is a public method, so this code doesn't actually have to live in BrowserView but could also be done from the outside.

Ooops! It's already committed.
Should I make those changes as separate patch?
Comment 6 Viatcheslav Ostapenko 2011-05-31 16:00:53 PDT
Removed from commit queue to address some issues mentioned by Simon.
Comment 7 Viatcheslav Ostapenko 2011-05-31 16:21:06 PDT
Created attachment 95504 [details]
Fix issues from Simon review.
Comment 8 Andreas Kling 2011-06-01 07:34:44 PDT
Comment on attachment 95504 [details]
Fix issues from Simon review.

LGTM
Comment 9 WebKit Commit Bot 2011-06-01 10:53:49 PDT
The commit-queue encountered the following flaky tests while processing attachment 95504 [details]:

http/tests/websocket/tests/frame-length-longer-than-buffer.html bug 61837 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.
Comment 10 WebKit Commit Bot 2011-06-01 10:55:20 PDT
Comment on attachment 95504 [details]
Fix issues from Simon review.

Clearing flags on attachment: 95504

Committed r87824: <http://trac.webkit.org/changeset/87824>
Comment 11 WebKit Commit Bot 2011-06-01 10:55:27 PDT
All reviewed patches have been landed.  Closing bug.