summaryrefslogtreecommitdiffstats
path: root/cc/output
Commit message (Collapse)AuthorAgeFilesLines
* Update secure output flags on display changes.dcastagna2016-03-221-5/+0
| | | | | | | | | | | | | | | | | | | | | This patch adds a WindowTreeHostManager::Observer to exo that sets the appropriate output secure flag to the compositors when the display configuration changes. The first iteration for the logic that determines if the output is secure is simply a check if the connected display is internal and mirroring is disabled on all the devices. Additionally this patch moves the 'is_secure_' flag from the OutputSurface to LayerTreeImpl, since the lifetime of the latter better matches the display configuration changes. BUG=b/27173841,b/27174223 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1821553002 Cr-Commit-Position: refs/heads/master@{#382683}
* Switch SkImageFilter::filterBounds() calls over to non-deprecated API.senorblanco2016-03-222-7/+4
| | | | | | | | | | | Also remove the protective define for the legacy API. BUG=skia:5094 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1820023003 Cr-Commit-Position: refs/heads/master@{#382540}
* Make a command buffer workaround for glReadPixels on IOSurface backed textures.erikchen2016-03-221-50/+0
| | | | | | | | | | | | The workaround previously existed in GLRenderer. This CL moves the workaround into the command buffer. BUG=581777 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Review URL: https://codereview.chromium.org/1806753003 Cr-Commit-Position: refs/heads/master@{#382466}
* Add CONTEXT_TYPE_OPENGLES2_PEPPERericrk2016-03-182-2/+14
| | | | | | | | | | | | | | | Adds a new context type for Pepper GL contexts. This allows us to fine tune driver bug workarounds for pepper vs. non-pepper contexts. Currently used to disable the Intel MSAA blacklist on pepper contexts, as it should be up to the app whether to use MSAA. BUG=527565 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Review URL: https://codereview.chromium.org/1781093002 Cr-Commit-Position: refs/heads/master@{#382097}
* cc: Remove some unnecessary const scoped_refptr&.vmpstr2016-03-166-41/+37
| | | | | | | | | | | | | | | This patch makes the API a bit clearer by taking a copy of scoped_refptr in some situations (where ownership is shared) and using a raw pointer in situations where ownership is not needed. The only references that remain are the ones captured in lambdas or Callbacks. R=danakj BUG=589044 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1803863003 Cr-Commit-Position: refs/heads/master@{#381524}
* cc: Refactor SkipImageCanvas and create it during playback.vmpstr2016-03-141-2/+8
| | | | | | | | | | | | | | | This patch moves SkipImageCanvas into a separate file in the same directory as ImageHijackCanvas and also moves the creation of SkipImageCanvas to raster source playback (the same place as ImageHijackCanvas is created). BUG=594679 R=enne, ericrk CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1799883002 Cr-Commit-Position: refs/heads/master@{#381101}
* Begin switch-over to using sk_sp (for SkShader for now)reed2016-03-111-5/+3
| | | | | | | | | | | This is not a complete conversion of setShader() sites, but is intended to be a canary, to tryout the new patterns. More will follow once this is approved. BUG=skia:5077 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1778913002 Cr-Commit-Position: refs/heads/master@{#380613}
* Make TextureLayerImplTest comply with secure_output flag.dcastagna2016-03-083-3/+8
| | | | | | | | | | | | | | | This patch adds a flag 'secure_output_only_' to TextureMailbox and a flag 'is_secure_output_' to the LayerTreeImpl. This flags are used by TextureLayerImpl to determine if it's secure to composite specific textures coming from a mailbox on a specific compositor. BUG=b/27173841,b/27174223 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1773923002 Cr-Commit-Position: refs/heads/master@{#379966}
* Mac Overlays: Cleanup and prep for render passes draw quadsccameron2016-03-0710-281/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change overlay functions to just take the root render pass, not the full list of render passes, because only the root is operated on. Move the logic for handling overlays into a separate function, DirectRenderer::ProcessRootRenderPassForOverlays, and call this function only when we hit the root render pass. Note that it is important that this happen after all render passes are drawn, so that we can examine the resources that they were drawn to. Note that the above has the effect that we will no longer skip drawing those render passes when use of overlays would have allowed them to be skipped. Only disallow overlays if the root render pass has a copy request -- the other render passes can have copies if they want. Fold this logic into OverlayProcessor::ProcessForOverlays, and remove the function to tell the OverlayProcessor that the process call was skipped (it now never will be). BUG=581526 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1709143003 Cr-Commit-Position: refs/heads/master@{#379638}
* tracing: Make ConvertableToTraceFormat move-onlyprimiano2016-02-292-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary. This CL: - Makes TraceEvent ownership a move-only scoped_ptr. - Makes ConvertableToTraceFormat (CTTF) itself move-only scoped_ptr. - Updates all the codebase that uses CTTF in TRACE_EVENT macros to use move-only semantics. Background: Historically ConvertableToTraceFormat (CTTF) was RefCounted. The main reason seems to be supporting monitoring mode (now deprecated) where tracing needed to copy TraceEvents without flushing the TraceLog. Not what monitoring mode is gone, there is no reason why TraceEvent(s) should not be move-only. Unfortunately CTTF being RefCounted exposed that implementation detail to its public interface. Fortunately, most of the codebase doesn't care about the fact that CTTF is RefCounted. The only exceptions are: 1. Memory-infra heap profiler {StackFrame,TypeInfo}Deduplicator 2. cc::Layer DebugInfo 1) Is addressed creating a proxy class which delegates the CTTF methods to the duplicators inside MDSessionState. Essentially it makes the CTTF metadata events shared co-owners of the MDSessionState. 2) After an offline chat with danakj@, it seems OK to make DebugInfo(s) moved scoped_ptr (as opposite as copied), moving the ownership to the active layer and keeping a raw ptr into the pending layer. BUG=559117 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=thakis,jochen,tbarzic,mnaganov,skyostil Review URL: https://codereview.chromium.org/1717283003 Cr-Commit-Position: refs/heads/master@{#378263}
* Use SkBudgeted enum class valuesbsalomon2016-02-271-1/+1
| | | | | | | | | | SkSurface::kYes_Budgeted and SkSurface::kNo_Budgeted are now just legacy aliases for the values of the enum class SkBudgeted. These aliases can be deleted once this change lands. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1738223002 Cr-Commit-Position: refs/heads/master@{#378139}
* Use GrGLTextureInfo for Skia texture handles.bsalomon2016-02-271-3/+13
| | | | | | | | | | Currently Chromium's Skia build uses the old interface for moving textures in and out of Ganesh using a #define. This change updates callers to use the new type that communicates the texture target in addition to the ID. This is needed to support Chromium/skia interop for rectangle and external_oes textures. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1508903002 Cr-Commit-Position: refs/heads/master@{#378136}
* content: Improve thread priority for raster threads.reveman2016-02-251-4/+0
| | | | | | | | | | | | | | | | | This reduces the amount of resources that background work can use by making the background thread that runs pre-paint tasks use a priority that makes it run on a single small core on big.LITTLE devices. Threads used for foreground work are now given normal priority on all platforms. BUG=504515 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1616953003 Cr-Commit-Position: refs/heads/master@{#377490}
* cc: Add out-of-line copy ctors for complex classes.vmpstr2016-02-258-0/+13
| | | | | | | | | | | | | | This patch adds out of line copy constructors for classes that our clang-plugin considers heavy. This is an effort to enable copy constructor checks by default. BUG=436357 R=enne@chromium.org, dcheng@chromium.org, thakis@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1732573002 Cr-Commit-Position: refs/heads/master@{#377462}
* Added GLStreamTextureImage : GLImage, which exposesliberato2016-02-241-2/+11
| | | | | | | | | | | | | | | | | | | | | GetTextureMatrix. This provides a texture matrix to convert from hardware-specific texture coordinates. Made AVDACodecImage provide the current matrix from the SurfaceTexture. Updates GLRenderer::DrawStreamVideoQuad to use the current texture matrix from the GLImage if available, else fall back to the one recorded quad. Once stream_texture_android.cc returns the most recent texture matrix, it may be possible to remove the entire DidUpdateMatrix path in VideoFrameProvider. Does not address CopyTextureCHROMIUM. BUG=530681,226218 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1559203003 Cr-Commit-Position: refs/heads/master@{#377150}
* Reland Allow one-copy and zero-copy task tile worker pools to use compressed ↵auygun2016-02-223-9/+15
| | | | | | | | | | | textures. BUG=434699 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1713503002 Cr-Commit-Position: refs/heads/master@{#376711}
* Mac Overlays: Remove OverlayStrategySandwichccameron2016-02-193-558/+0
| | | | | | | | | | | This isn't being used anymore. BUG=581526 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1711283002 Cr-Commit-Position: refs/heads/master@{#376367}
* Introducing gpu::CommandBufferId as a distinct, IdType<...>-based type.lukasza2016-02-161-1/+2
| | | | | | | | | | | | | | | This CL generalizes the pattern used by content::SavePackageId and cc::SurfaceId and puts it into //base/id_type.h. Using this pattern for gpu::CommandBufferId should hopefully help avoid bugs like the mixup fixed by https://crrev.com/365437. BUG=514815, 565545 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=wolenetz@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/1548443002 Cr-Commit-Position: refs/heads/master@{#375620}
* Allocating the IOSurface for OpenGL's backbuffer is expensive, and canccameron2016-02-162-1/+25
| | | | | | | | | | | | | | | | | | | | | be even more expensive if it is going to need to be cleared to be blank. When we use the CoreAnimation renderer, we don't even use the backbuffer, so we're better off just never allocating it. This makes a substantial difference when resizing a window, as an IOSurface that needs to be allocated every frame. If we're not going to be drawing the backbuffer overlay, don't trigger its allocation by binding the framebuffer. Add checks to existing tests to verify this behavior. BUG=584760 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1692823002 Cr-Commit-Position: refs/heads/master@{#375505}
* cc: Flush the drawing before unlocking the filtered sourcekkinnunen2016-02-121-1/+5
| | | | | | | | | | | | | Flush the drawing before unlocking the filtered source texture. This fixes the bugs related to overwriting the source texture before Skia uses it. BUG=582858 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1692563003 Cr-Commit-Position: refs/heads/master@{#375143}
* Delete an unused variable in DirectRenderer.chrishtr2016-02-091-1/+0
| | | | | | | | CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1682053002 Cr-Commit-Position: refs/heads/master@{#374439}
* Add support for 9- and 10-bit h264 videos.hubbe2016-02-092-28/+98
| | | | | | | | | | | | | | | | | Videos are uploaded to GPU using half-floats if supported, otherwise they are downshifted to regular 8-bit textures before uploading. No dithering is done, except for whatever GL_DITHER might do. (Which is probably nothing.) BUG=445071 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/074c4287f2625860b2a9eb437b97f1f1788f8f4b Cr-Commit-Position: refs/heads/master@{#373691} Review URL: https://codereview.chromium.org/1599533002 Cr-Commit-Position: refs/heads/master@{#374221}
* cc: fix for huge filtered render surfaces.senorblanco2016-02-081-21/+35
| | | | | | | | | | | | | | | | Now that we're properly taking crop rects (filter region) into account in accelerated reference filters, we may end up with a very large size for the resulting render target. This is inefficient, and may fail to allocate. The fix is to apply the layer's clip_rect to the computed rect. BUG=582357 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1670763002 Cr-Commit-Position: refs/heads/master@{#374216}
* Revert of Add support for 9- and 10-bit h264 videos. (patchset #27 of ↵flackr2016-02-052-98/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/1599533002/ ) Reason for revert: Commit was failing content_browsertests on Mac 10.10: failures: Http/MediaTest.VideoBearHighBitDepthMp4/0 File/MediaTest.VideoBearHighBitDepthMp4/0 First failure: https://build.chromium.org/p/chromium.mac/builders/Mac10.10%20Tests/builds/5222 Original issue's description: > Add support for 9- and 10-bit h264 videos. > > Videos are uploaded to GPU using half-floats if supported, otherwise > they are downshifted to regular 8-bit textures before uploading. No > dithering is done, except for whatever GL_DITHER might do. (Which > is probably nothing.) > > BUG=445071 > CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel > > Committed: https://crrev.com/074c4287f2625860b2a9eb437b97f1f1788f8f4b > Cr-Commit-Position: refs/heads/master@{#373691} TBR=fbarchard@chromium.org,erg@chromium.org,reed@chromium.org,piman@chromium.org,danakj@chromium.org,asvitkine@chromium.org,dalecurtis@chromium.org,nasko@chromium.org,fsamuel@chromium.org BUG=445071 NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1674703002 Cr-Commit-Position: refs/heads/master@{#373824}
* Add support for 9- and 10-bit h264 videos.hubbe2016-02-052-28/+98
| | | | | | | | | | | | | | Videos are uploaded to GPU using half-floats if supported, otherwise they are downshifted to regular 8-bit textures before uploading. No dithering is done, except for whatever GL_DITHER might do. (Which is probably nothing.) BUG=445071 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1599533002 Cr-Commit-Position: refs/heads/master@{#373691}
* cc: use Skia's filterBounds() traversal, not computeFastBounds().senorblanco2016-01-281-17/+7
| | | | | | | | | | | | | | | | filterBounds() is performed in device space, which matches cc's use case (determining the device-space size of a texture to allocate) more closely. Since it also supports the crop rect, this fixes filter regions for accelerated reference filters (crbug.com/240845). BUG=240845 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1643983002 Cr-Commit-Position: refs/heads/master@{#372183}
* Switch cc to std::unordered_*.davidben2016-01-284-17/+16
| | | | | | | | | | | | This removes all uses of base::hash_*, BASE_HASH_NAMESPACE, and base::ScopedPtrHashMap in favor of the C++11 versions. BUG=576864, 579229 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1587283002 Cr-Commit-Position: refs/heads/master@{#371937}
* cc: make partially-resident textures use 1 - y, not h - y.senorblanco2016-01-283-10/+94
| | | | | | | | | | | | | | | | | In Skia, partially-resident textures of "flipped" textures occupy texcoords 1 to 1 - h (in Y). In cc, they occupy h to 0. In order to ease interop, we should pick a convention and unify. I chose the Skia model, since coords can flipped with a simple 1 - y, which doesn't require knowing the height of the active region. I also added a new test case for masks, since the math is a little hinky. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1643653002 Cr-Commit-Position: refs/heads/master@{#371930}
* cc cleanup: simplify mask_uv_scale and MaskUVRect().senorblanco2016-01-271-5/+3
| | | | | | | | | | | | | | | | RenderPassDrawQuad::MaskUVRect() computes the UV rect by scaling the quad->rect() by mask_uv_scale, then dividing by quad->rect size. However, RenderSurfaceImpl::AppendQuads() computes the mask UV scale as quad->rect() size / mask size. So let's just take the quad->rect() size out of mask_uv_scale in the first place, so we don't have to divide it back out in MaskUVRect(). BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1647573002 Cr-Commit-Position: refs/heads/master@{#371879}
* cc: remove unused texture rect params, functions.senorblanco2016-01-266-25/+6
| | | | | | | | | | | | | Looks like the target_rect param to BindFramebufferToTexture is now unused. And it looks like UseScopedTexture is entirely unused. Remove them both. BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1633283002 Cr-Commit-Position: refs/heads/master@{#371632}
* Removed OLD_SYNC_POINT sync token namespace.dyen2016-01-212-7/+6
| | | | | | | | | | R=piman@chromium.org BUG=514815 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1608303002 Cr-Commit-Position: refs/heads/master@{#370799}
* Mac: Add support for clipping and arbitrary transformsccameron2016-01-214-73/+62
| | | | | | | | | | | | | | | | | | | Create a hierarchy as described in the design document at https://docs.google.com/document/d/1DtSN9zzvCF44_FQPM7ie01UxGHagQ66zfF5L9HnigQY/edit#heading=h.xm56c9edenjg Move maintenance of this hierarchy to a separate file, ca_layer_tree_mac.mm. Remove support for overlays from ImageTransportOverlayMac, because they now just add complication for not much additional energy savings. BUG=533681 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1585323004 Cr-Commit-Position: refs/heads/master@{#370606}
* Accelerated filters should filter unpadded primitives.senorblanco2016-01-203-29/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until recently, the Skia image filter infrastructure could only produce a result image of the same size as its input image. For that reason, currently Blink applies filter outsets to a layer before it passes the layer to cc. So cc sees a layer padded with transparent black out to the filter outsets, but has no idea how big the original layer was. It then passes that to Skia, which produces an image of the same size. I've recently fixed Skia to be able to correctly draw from the original (unpadded) texture size to the correct, padded texture size. But to take advantage of that, we need Blink to stop padding the texture (see PaintLayer). This may result in a destination buffer which is of a different size than the source, so we modify cc's drawing to draw the destination rect. Also, since we're giving the original (unmodified) source rect to Skia, we no longer need to offset the crop rects in Blink by the delta between the src and dest rects. (Note: we can thus remove the crop offset stuff entirely from Blink, which I'll do in a followup patch.) Finally, note that the workaround for the partially-occupied textures implemented (implemented in https://codereview.chromium.org/909353003) was no longer working when drawing to exact-size textures, due to a bug in SkAlphaThresholdFilter. This is fixed in Skia here: https://codereview.chromium.org/1609573002/. That will be required to roll into Chrome before this patch can be landed. BUG=568196 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1517693002 Cr-Commit-Position: refs/heads/master@{#370523}
* (De)-serialize BeginMainFrameAndCommitState to protobuf.khushalsagar2016-01-153-0/+97
| | | | | | | | | BUG=550687 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1581773002 Cr-Commit-Position: refs/heads/master@{#369836}
* Use SkPaintImageFilter instead of SkRectShaderImageFilterajuma2016-01-121-1/+0
| | | | | | | | | | | SkRectShaderImageFilter is going to be removed. BUG=skia:4780 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1579993003 Cr-Commit-Position: refs/heads/master@{#368929}
* Mac Overlays: Initialize edge aa maskccameron2016-01-122-10/+7
| | | | | | | | | BUG=567946 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1573543002 Cr-Commit-Position: refs/heads/master@{#368780}
* cc: Allow returning overlay resources upon swap completionccameron2016-01-127-93/+65
| | | | | | | | | | | | | | | | | | | | | | | | On Mac, the only way to reliably know that overlay resources are no longer in use is by the function IOSurfaceIsInUse (which is checked by the functions ResourceProvider::InUseByConsumer and ResourceProvider::CanLockForWrite). IOSurfaceIsInUse will start returning true as soon as a CALayer has its contents set to an IOSurface, which happens during swap in the GPU process (in particular, when a Mach port for the IOSurface is created for sending to the WindowServer process), and so the earliest time that resources may be returned to the renderer process is swap completion. Repurpose a now-extinct flag to indicate that overlay resources are to be returned immediately upon swap acknowledgement, and add tests to ensure this behavior. BUG=558701 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1523063005 Cr-Commit-Position: refs/heads/master@{#368751}
* Implement external stencil for Android WebViewboliu2016-01-094-1/+5
| | | | | | | | | | | | | | Add an OutputSurface::ApplyExternalStencil method. Android WebView implements this method on the render thread and applies the stencil parameters read in functor, through the command buffer client. BUG=574570 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1564703005 Cr-Commit-Position: refs/heads/master@{#368468}
* mac: Add support for y-flipped quads to CALayerOverlay.erikchen2016-01-081-3/+9
| | | | | | | | | BUG=533617 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1569993002 Cr-Commit-Position: refs/heads/master@{#368276}
* Converted cc and mailbox output surface to use new sync tokens.dyen2016-01-081-1/+6
| | | | | | | | | | R=piman@chromium.org BUG=514815 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1450683002 Cr-Commit-Position: refs/heads/master@{#368231}
* Android WebView: Crash on compositor context lossboliu2016-01-041-1/+1
| | | | | | | | | | | | Android webview does not, and in some cases cannot correctly handle context loss. Explicitly crash on context loss so they generate consistent crash stacks. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1441273002 Cr-Commit-Position: refs/heads/master@{#367371}
* Switch to standard integer types in cc/.avi2015-12-2154-56/+133
| | | | | | | | | | BUG=138542 TBR=danakj@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1539203002 Cr-Commit-Position: refs/heads/master@{#366333}
* Mac CoreAnimation: Specify edge anti-aliasingccameron2015-12-183-3/+15
| | | | | | | | | | | | Enable edge anti-aliasing only for quad edges that are also layer borders. BUG=567946 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1531133003 Cr-Commit-Position: refs/heads/master@{#366182}
* Revert of Allow one-copy task tile worker pool to use compressed textures. ↵rbyers2015-12-183-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (patchset #14 id:260001 of https://codereview.chromium.org/1379783002/ ) Reason for revert: Causing perf bot failures - apparently triggers a render crash. http://crbug.com/570477 and possibly http://crbug.com/570809. Please run a perf tryjob including these tests before relanding. Original issue's description: > Allow one-copy and zero-copy task tile worker pools to use compressed textures. > > BUG=434699 > CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel > > Committed: https://crrev.com/7d60ce9a132a88ead407a2a58c91edc431e68259 > Cr-Commit-Position: refs/heads/master@{#364326} > > Committed: https://crrev.com/10fc39d36c0ba481056ec91a2984e02fd1127cf4 > Cr-Commit-Position: refs/heads/master@{#364484} TBR=reveman@chromium.org,nyquist@chromium.org,piman@chromium.org,sievers@chromium.org,christiank@opera.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=434699 Review URL: https://codereview.chromium.org/1535953003 Cr-Commit-Position: refs/heads/master@{#366101}
* Convert Pass()→std::move() in cc/dcheng2015-12-181-6/+8
| | | | | | | | | BUG=557422 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1540503002 Cr-Commit-Position: refs/heads/master@{#366046}
* Mac CoreAnimation: Add more CALayer parametersccameron2015-12-181-3/+10
| | | | | | | | | | | | | | | | | Clipping and unsupported 3D intersections account for 20% of the frames that fail to be rendered by the CoreAnimation renderer. Add parameters to the GL extension to support these functions. Also add a parameter for edge anti-aliasing, since that will be needed in the future. TBR=ben BUG=533681 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1534623002 Cr-Commit-Position: refs/heads/master@{#365965}
* cc: Move draw params from SetExternalDrawConstraints to OnDrawboliu2015-12-173-30/+7
| | | | | | | | | | | | | | | | | This is a clean up to move some of the logic spread between LayerTreeHostImpl and SynchronousCompositorOutputSurface about setting and saving parameters for synchronous compositor draws. Move draw parameters to OnDraw. These will be reset before OnDraw returns. Parameters are overridden permanently is set in SetExternalDrawConstraints. BUG=419795 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1418273002 Cr-Commit-Position: refs/heads/master@{#365700}
* drawSprite is deprecated, use SkImage insteadreed2015-12-162-32/+35
| | | | | | | | | | | BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=vollick Review URL: https://codereview.chromium.org/1523343003 Cr-Commit-Position: refs/heads/master@{#365418}
* Change output surface opacity to match root render pass.jbauman2015-12-155-17/+37
| | | | | | | | | | | This allows windows that don't need opacity to be presented more efficiently (e.g. with no blending with the contents underneath them). BUG=561185 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1501513004 Cr-Commit-Position: refs/heads/master@{#365315}
* SkCanvas::drawSprite and SkGrPixelRef are both deprecated.reed2015-12-151-26/+17
| | | | | | | | | | | | | | | Replace drawSprite with drawImage Replace SkGrPixelRef with SkImage::NewFromTexture Since there is a local transformation to be applied only to the filter (which used to happen magically inside drawSprite) we now explicitly wrap the filter with a LocalMatrixImageFilter. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=reveman Review URL: https://codereview.chromium.org/1388463003 Cr-Commit-Position: refs/heads/master@{#365262}