Bug 75519 - [GTK] [AC] Introduce AcceleratedCompositingContext to isolate different accelerated compositing implementations
Summary: [GTK] [AC] Introduce AcceleratedCompositingContext to isolate different accel...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Martin Robinson
URL:
Keywords:
Depends on:
Blocks: 74087
  Show dependency treegraph
 
Reported: 2012-01-03 21:17 PST by Martin Robinson
Modified: 2012-01-05 12:19 PST (History)
0 users

See Also:


Attachments
Patch (15.75 KB, patch)
2012-01-03 22:09 PST, Martin Robinson
alex: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2012-01-03 21:17:35 PST
This class will isolate each of the implementations, hopefully preventing code conflicts as we post patches for acceleated compositing.
Comment 1 Martin Robinson 2012-01-03 22:09:28 PST
Created attachment 121064 [details]
Patch
Comment 2 Alejandro G. Castro 2012-01-05 05:45:23 PST
Comment on attachment 121064 [details]
Patch

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

Great patch.

> Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h:34
> +class TextureMapper;
> +class TextureMapperNode;

Should this be avoided in case of clutter compilation?

> Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextClutter.cpp:87
> +    if (rect == IntRect())
> +        m_rootGraphicsLayer->setNeedsDisplay();

Shouln't we return in this clause to avoid the next setNeedsDisplay with emtpy rect? Are we testing if rect.isEmpty()?
Comment 3 Martin Robinson 2012-01-05 12:17:46 PST
(In reply to comment #2)
> (From update of attachment 121064 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=121064&action=review
> 
> Great patch.
> 
> > Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h:34
> > +class TextureMapper;
> > +class TextureMapperNode;
> 
> Should this be avoided in case of clutter compilation?

Yep! This was left over from my work with TextureMapperGL. I've removed it.

> > Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextClutter.cpp:87
> > +    if (rect == IntRect())
> > +        m_rootGraphicsLayer->setNeedsDisplay();
> 
> Shouln't we return in this clause to avoid the next setNeedsDisplay with emtpy rect? Are we testing if rect.isEmpty()?

Right again on both counts. I've changed the test to rect.isEmpty() and added an early return.

Thanks for the review!
Comment 4 Martin Robinson 2012-01-05 12:19:14 PST
Committed r104194: <http://trac.webkit.org/changeset/104194>