Bug 111072 - [BlackBerry] Upstream BlackBerry::Platform::GraphicsContext integration related changes in platform/graphics/blackberry
Summary: [BlackBerry] Upstream BlackBerry::Platform::GraphicsContext integration relat...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Arvid Nilsson
URL:
Keywords:
Depends on:
Blocks: 73144
  Show dependency treegraph
 
Reported: 2013-02-28 06:10 PST by Arvid Nilsson
Modified: 2013-03-01 09:45 PST (History)
16 users (show)

See Also:


Attachments
Patch (364.11 KB, patch)
2013-02-28 07:09 PST, Arvid Nilsson
no flags Details | Formatted Diff | Diff
Patch (257.27 KB, patch)
2013-03-01 07:39 PST, Arvid Nilsson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Nilsson 2013-02-28 06:10:47 PST
A new platform abstraction for the graphics engine was added in BB10. This is the integration code for the new graphics backend in WebCore/platform/graphics/blackberry. Build system and WebKit/blackberry changes will be other bugs.
Comment 1 Arvid Nilsson 2013-02-28 07:09:31 PST
Created attachment 190722 [details]
Patch
Comment 2 WebKit Review Bot 2013-02-28 07:12:17 PST
Attachment 190722 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/graphics/blackberry/CanvasLayerWebKitThread.cpp', u'Source/WebCore/platform/graphics/blackberry/CanvasLayerWebKitThread.h', u'Source/WebCore/platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/DrawingBufferBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/EGLImageLayerCompositingThreadClient.cpp', u'Source/WebCore/platform/graphics/blackberry/EGLImageLayerCompositingThreadClient.h', u'Source/WebCore/platform/graphics/blackberry/EGLImageLayerWebKitThread.cpp', u'Source/WebCore/platform/graphics/blackberry/EGLImageLayerWebKitThread.h', u'Source/WebCore/platform/graphics/blackberry/FloatRectBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/FontBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/FontCacheBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/FontCacheBlackberry.cpp', u'Source/WebCore/platform/graphics/blackberry/FontCustomPlatformData.h', u'Source/WebCore/platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/FontPlatformDataBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/GlyphPageTreeNodeBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/GradientBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/GraphicsContextBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/GraphicsLayerBlackBerry.h', u'Source/WebCore/platform/graphics/blackberry/ITypeUtils.h', u'Source/WebCore/platform/graphics/blackberry/ImageBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/ImageBufferDataBlackBerry.h', u'Source/WebCore/platform/graphics/blackberry/InstrumentedPlatformCanvas.h', u'Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.h', u'Source/WebCore/platform/graphics/blackberry/LayerCompositingThreadClient.h', u'Source/WebCore/platform/graphics/blackberry/LayerData.h', u'Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerRenderer.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerRenderer.h', u'Source/WebCore/platform/graphics/blackberry/LayerRendererSurface.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerTile.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerTile.h', u'Source/WebCore/platform/graphics/blackberry/LayerTileIndex.h', u'Source/WebCore/platform/graphics/blackberry/LayerTiler.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerTiler.h', u'Source/WebCore/platform/graphics/blackberry/LayerWebKitThread.cpp', u'Source/WebCore/platform/graphics/blackberry/LayerWebKitThread.h', u'Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h', u'Source/WebCore/platform/graphics/blackberry/PathBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/PatternBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/PlatformSupport.cpp', u'Source/WebCore/platform/graphics/blackberry/PlatformSupport.h', u'Source/WebCore/platform/graphics/blackberry/PluginLayerWebKitThread.cpp', u'Source/WebCore/platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp', u'Source/WebCore/platform/graphics/blackberry/Texture.cpp', u'Source/WebCore/platform/graphics/blackberry/Texture.h', u'Source/WebCore/platform/graphics/blackberry/TextureCacheCompositingThread.cpp', u'Source/WebCore/platform/graphics/blackberry/TextureCacheCompositingThread.h', u'Source/WebCore/platform/graphics/blackberry/skia/ImageBufferDataSkia.h', u'Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp', u'Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.h']" exit_code: 1
Source/WebCore/platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp:56:  Line contains only semicolon. If this should be an empty statement, use { } instead.  [whitespace/semicolon] [5]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:289:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:290:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:291:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:292:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:293:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:295:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:296:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:297:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:301:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:303:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:306:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:307:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/platform/graphics/blackberry/ImageBufferBlackBerry.cpp:309:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Total errors found: 14 in 52 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Rob Buis 2013-02-28 07:17:41 PST
(In reply to comment #1)
> Created an attachment (id=190722) [details]
> Patch

I think this is a bit much to review. Maybe it is better to split out the added files in a separate patch, which would make this one more manageable.
Also crediting all persons involved is a good idea.
Comment 4 Arvid Nilsson 2013-03-01 01:39:47 PST
(In reply to comment #3)
> (In reply to comment #1)
> > Created an attachment (id=190722) [details] [details]
> > Patch
> 
> I think this is a bit much to review. Maybe it is better to split out the added files in a separate patch, which would make this one more manageable.
> Also crediting all persons involved is a good idea.

I'll open a new bug for the new files. I haven't received a list of all the people yet, see PR 293208 for details.
Comment 5 Arvid Nilsson 2013-03-01 01:41:32 PST
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #1)
> > > Created an attachment (id=190722) [details] [details] [details]
> > > Patch
> > 
> > I think this is a bit much to review. Maybe it is better to split out the added files in a separate patch, which would make this one more manageable.
> > Also crediting all persons involved is a good idea.
> 
> I'll open a new bug for the new files. I haven't received a list of all the people yet, see PR 293208 for details.

https://bugs.webkit.org/show_bug.cgi?id=111153
Comment 6 Arvid Nilsson 2013-03-01 07:39:53 PST
Created attachment 190965 [details]
Patch
Comment 7 Rob Buis 2013-03-01 08:14:00 PST
Comment on attachment 190965 [details]
Patch

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

Some nits but nothing that needs to be fixed in this patch.

> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:33
> +#include <Vector.h>

Not an improvement, since the former is preferred. Does not need to be part of this patch though.

> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:304
> +    char standardVertexShaderString[] =

These could be const to move it into rodata. But not part of this patch...

> Source/WebCore/platform/graphics/blackberry/LayerRenderer.cpp:595
> +        glDisable(GL_BLEND);

I see this structure recurring a lot, I wonder if we should make a helper function.
Comment 8 WebKit Review Bot 2013-03-01 09:45:31 PST
Comment on attachment 190965 [details]
Patch

Clearing flags on attachment: 190965

Committed r144465: <http://trac.webkit.org/changeset/144465>
Comment 9 WebKit Review Bot 2013-03-01 09:45:35 PST
All reviewed patches have been landed.  Closing bug.