WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98147
Implement GraphicsSurface for Windows.
https://bugs.webkit.org/show_bug.cgi?id=98147
Summary
Implement GraphicsSurface for Windows.
Zeno Albisser
Reported
2012-10-02 04:41:01 PDT
GraphicsSurface is used to share textures between the WebProcess and the UIProcess. Currently there are only implementations for Mac and Linux/GLX. We should make it available for Windows as well to allow for WebGL. ANGLE can be used to map GL calls to DirectX.
Attachments
Patch
(29.35 KB, patch)
2012-10-24 02:45 PDT
,
Zeno Albisser
no flags
Details
Formatted Diff
Diff
Patch
(29.35 KB, patch)
2012-10-24 05:30 PDT
,
Zeno Albisser
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zeno Albisser
Comment 1
2012-10-24 02:45:36 PDT
Created
attachment 170348
[details]
Patch
WebKit Review Bot
Comment 2
2012-10-24 02:47:51 PDT
Attachment 170348
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:351: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:353: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 2 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zeno Albisser
Comment 3
2012-10-24 02:54:25 PDT
Comment on
attachment 170348
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=170348&action=review
>> Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:353 >> + 1, 1 > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
Indentation is like that on purpose.
Kenneth Rohde Christiansen
Comment 4
2012-10-24 03:12:44 PDT
Comment on
attachment 170348
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=170348&action=review
> Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:6 > +/* > + > + Copyright (C) 2012 Zeno Albisser <
zeno@webkit.org
> > + > + This library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Library General Public
I think we normally have *'s here in the beginning of each line
> Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:79 > + initShaderProgram();
webkit usually uses initialize*
> Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:488 > + if (m_private) > + delete m_private;
That if is not needed
Zeno Albisser
Comment 5
2012-10-24 05:28:27 PDT
(In reply to
comment #4
)
> I think we normally have *'s here in the beginning of each line
Depends on the licence header, we have both. I aligned with GraphicsContext3DQt.cpp, GraphicsSurface.h, GraphicsSurface.cpp and others.
> webkit usually uses initialize*
I'll fix that.
> > + if (m_private) > > + delete m_private; > That if is not needed
i'll fix that as well.
Zeno Albisser
Comment 6
2012-10-24 05:30:49 PDT
Created
attachment 170374
[details]
Patch
WebKit Review Bot
Comment 7
2012-10-24 05:33:40 PDT
Attachment 170374
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:351: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:353: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 2 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Kenneth Rohde Christiansen
Comment 8
2012-10-24 05:44:53 PDT
Comment on
attachment 170374
[details]
Patch r=me as this is at least a good start
Zeno Albisser
Comment 9
2012-10-24 06:19:07 PDT
Comment on
attachment 170374
[details]
Patch Clearing flags on attachment: 170374 Committed
r132343
: <
http://trac.webkit.org/changeset/132343
>
Zeno Albisser
Comment 10
2012-10-24 06:19:13 PDT
All reviewed patches have been landed. Closing bug.
Simon Hausmann
Comment 11
2012-10-25 01:13:16 PDT
Comment on
attachment 170374
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=170374&action=review
> Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp:3 > + Copyright (C) 2012 Zeno Albisser <
zeno@webkit.org
>
Shouldn't this at least include Digia?
Zeno Albisser
Comment 12
2012-10-25 02:43:38 PDT
> Shouldn't this at least include Digia?
I will add this the next time i touch the file.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug