summaryrefslogtreecommitdiffstats
path: root/cc/layers/nine_patch_layer.h
Commit message (Collapse)AuthorAgeFilesLines
* CC Animation: Erase cc::LayerSettings everywhere.loyso2016-03-141-2/+2
| | | | | | | | | | | Also, erase LayerTreeSettings::use_compositor_animation_timelines flag. BUG=575041 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1783613004 Cr-Commit-Position: refs/heads/master@{#380914}
* [Android] tab switcher exit animation gray line bug fix.kkimlabs2016-01-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | On existing tab switcher, a gray line was shown between toolbar and content unintentionally. This is clearly noticiable when the tab is NTP. Problems: - The border layer includes inner shadow that's not covered by fading- in toolbar. - The border layer is shifted by (0.5, 0.5) to avoid jaggies. - Linear interpolation of border layer on rasterization makes the top edge bleeding below. Fixes: - Seperates border layer and its inner shadow. - Also shifts the toolbar fading-in layer by (0.5, 0.5) - Use nearest neighbor rasterization when the toolbar is visible. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel BUG=None Review URL: https://codereview.chromium.org/1584573005 Cr-Commit-Position: refs/heads/master@{#371149}
* Switch to standard integer types in cc/.avi2015-12-211-0/+1
| | | | | | | | | | 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}
* CC: Plumb LayerSettings parameter for cc::Layer construction.loyso2015-05-251-2/+2
| | | | | | | | | | | | | | | | | | | Next episode: https://codereview.chromium.org/1101823002/ This is a prerequisite to implement compositor animation timelines. https://codereview.chromium.org/947033002/ BUG=394777 R=ajuma@chromium.org R=vollick@chromium.org R=piman@chromium.org R=danakj@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1122393003 Cr-Commit-Position: refs/heads/master@{#331256}
* cc cleanup: Update paths to geometry headersheejin.r.chung2014-10-231-1/+1
| | | | | | | | | | | Geometry headers were moved from /ui/gfx/ to ui/gfx/geometry. Updating includes accordingly. BUG=395370 Review URL: https://codereview.chromium.org/660333004 Cr-Commit-Position: refs/heads/master@{#300902}
* Standardize usage of virtual/override/final in cc/dcheng2014-10-211-4/+3
| | | | | | | | | BUG=417463 TBR=enne@chromium.org Review URL: https://codereview.chromium.org/645853008 Cr-Commit-Position: refs/heads/master@{#300439}
* replace OVERRIDE and FINAL with override and final in cc/mostynb2014-10-061-2/+2
| | | | | | | | BUG=417463 Review URL: https://codereview.chromium.org/628443002 Cr-Commit-Position: refs/heads/master@{#298271}
* Pass gfx::Rect and gfx::RectF by const ref.prashant.n@samsung.com2014-01-101-2/+2
| | | | | | | | | | | | | | | | | Avoid unneccessary copy of structures gfx::Rect & gfx::RectF by passing them by const ref rather than value. Any struct of size > 4 bytes should be passed by const ref. Passing by ref for these structs is faster than passing by value, especially when invoking function has multiple parameters. Pass by value creates unneccessary overhead which should be avoided. BUG=159273 Review URL: https://codereview.chromium.org/93663004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244224 0039d316-1c4b-4281-b951-d872f2087c98
* Generic UIResourceLayer for shared resources.clholgat@chromium.org2013-10-041-18/+3
| | | | | | | | | | | | Separated the UIResource management from the NinePatchLayer because we need it for other things as well. BUG=235290 Review URL: https://codereview.chromium.org/24716003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226908 0039d316-1c4b-4281-b951-d872f2087c98
* Update the nine patch layer to use UI resourcespowei@chromium.org2013-09-201-15/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old nine-patch layer used priority resource manager for requesting textures. This patch updates the nine-patch layer to use the UI resource manager. this patch clarifies the semantics of the aperture in both image and layer The new semantics corresponds to existing logic on the android-side. Changes have been made to UIResourceBitmap to use SkPixelRef as ref-counted of the bitmap content. The android-side changes: https://gerrit-int.chromium.org/#/c/43103/ [Update 8/13/2013] Reverted due to "regression" ( https://code.google.com/p/chromium/issues/detail?id=290215 ): https://codereview.chromium.org/23620047/ [Update 8/13/2013] Reverted due to failed mac_gpu bot: https://codereview.chromium.org/23740010/ BUG=276482,276487,290215 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222732 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223162 Review URL: https://chromiumcodereview.appspot.com/22870016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224270 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 223162 "Update the nine patch layer to use UI resources"zmo@chromium.org2013-09-131-28/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Breaks GpuMemoryTest.SingleWindowDoesNotExceedLimit on gpu bots. One example: http://build.chromium.org/p/chromium.gpu/builders/Mac%2010.8%20Debug%20%28Intel%29/builds/11092/steps/content_browsertests/logs/SingleWindowDoesNotExceedLimit > Update the nine patch layer to use UI resources > > The old nine-patch layer used priority resource manager for requesting textures. > This patch updates the nine-patch layer to use the UI resource manager. > this patch clarifies the semantics of the aperture in both image and layer > The new semantics corresponds to existing logic on the android-side. > > Changes have been made to UIResourceBitmap to use SkPixelRef as ref-counted > of the bitmap content. > > The android-side changes: > https://gerrit-int.chromium.org/#/c/43103/ > > BUG=276482,276487,290215 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222732 > > Review URL: https://chromiumcodereview.appspot.com/22870016 TBR=powei@chromium.org Review URL: https://codereview.chromium.org/23740010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223180 0039d316-1c4b-4281-b951-d872f2087c98
* Update the nine patch layer to use UI resourcespowei@chromium.org2013-09-131-15/+28
| | | | | | | | | | | | | | | | | | | | | The old nine-patch layer used priority resource manager for requesting textures. This patch updates the nine-patch layer to use the UI resource manager. this patch clarifies the semantics of the aperture in both image and layer The new semantics corresponds to existing logic on the android-side. Changes have been made to UIResourceBitmap to use SkPixelRef as ref-counted of the bitmap content. The android-side changes: https://gerrit-int.chromium.org/#/c/43103/ BUG=276482,276487,290215 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222732 Review URL: https://chromiumcodereview.appspot.com/22870016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223162 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 222732 "Update the nine patch layer to use UI resources"yfriedman@chromium.org2013-09-121-28/+15
| | | | | | | | | | | | | | | | | | | | | | | | | > Update the nine patch layer to use UI resources > > The old nine-patch layer used priority resource manager for requesting textures. > This patch updates the nine-patch layer to use the UI resource manager. > this patch clarifies the semantics of the aperture in both image and layer > The new semantics corresponds to existing logic on the android-side. > > Changes have been made to UIResourceBitmap to use SkPixelRef as ref-counted > of the bitmap content. > > The android-side changes: > https://gerrit-int.chromium.org/#/c/43103/ > > BUG=276482,276487 > > Review URL: https://chromiumcodereview.appspot.com/22870016 TBR=powei@chromium.org Review URL: https://codereview.chromium.org/23620047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222808 0039d316-1c4b-4281-b951-d872f2087c98
* Update the nine patch layer to use UI resourcespowei@chromium.org2013-09-121-15/+28
| | | | | | | | | | | | | | | | | | | The old nine-patch layer used priority resource manager for requesting textures. This patch updates the nine-patch layer to use the UI resource manager. this patch clarifies the semantics of the aperture in both image and layer The new semantics corresponds to existing logic on the android-side. Changes have been made to UIResourceBitmap to use SkPixelRef as ref-counted of the bitmap content. The android-side changes: https://gerrit-int.chromium.org/#/c/43103/ BUG=276482,276487 Review URL: https://chromiumcodereview.appspot.com/22870016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222732 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Make Layer::Update return a boolenne@chromium.org2013-07-081-1/+1
| | | | | | | | | | | | | | | | | | | As part of an optimization to prevent needless commits, add a return value from Update to say whether or not any resources were updated as a part of the call. Other layer property updates (bounds changes, etc) that happen during Update are covered through the normal SetNeedsCommit mechanism. This will allow a future patch to make SetNeedsDisplay/SetScrollOffsetFromImplThread only cause an update but not necessarily cause a commit. R=danakj@chromium.org BUG=256381 Review URL: https://chromiumcodereview.appspot.com/18454003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210424 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove RenderingStats passed to Layer::Update()egraether@chromium.org2013-06-291-2/+1
| | | | | | | | | | | depends on: https://codereview.chromium.org/13245007/ and: https://codereview.chromium.org/13132005/ BUG=181319 Review URL: https://chromiumcodereview.appspot.com/13258003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209251 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 191086 "cc: Switch RenderingStats collection in Layer::Up..."danakj@chromium.org2013-03-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | Looks like its DCHECKing on Win Aura interactive_ui_tests again. Same error as before. http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20Aura%20Tests%20%283%29&number=2148 > cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation > > This change switches all of the remaining RenderingStats collection in > composited mode to use RenderinStatsInstrumentation. > > BUG=181319 > > > Review URL: https://chromiumcodereview.appspot.com/12426024 TBR=egraether@chromium.org Review URL: https://codereview.chromium.org/13145002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191101 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Switch RenderingStats collection in Layer::Update() to ↵egraether@chromium.org2013-03-281-2/+1
| | | | | | | | | | | | | | RenderingStatsInstrumentation This change switches all of the remaining RenderingStats collection in composited mode to use RenderinStatsInstrumentation. BUG=181319 Review URL: https://chromiumcodereview.appspot.com/12426024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191086 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add DISALLOW_COPY_AND_ASSIGN where appropriate.danakj@chromium.org2013-03-271-0/+2
| | | | | | | | | | | Also DISALLOW_IMPLICIT_CONSTRUCTORS in a few places instead. NOTRY=true R=jamesr Review URL: https://chromiumcodereview.appspot.com/13065006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190989 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 190817 "cc: Switch RenderingStats collection in Layer::Up..."hashimoto@chromium.org2013-03-271-1/+2
| | | | | | | | | | | | | | | | | > cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation > > This change switches all of the remaining RenderingStats collection in > composited mode to use RenderinStatsInstrumentation. > > BUG=181319 > > > Review URL: https://chromiumcodereview.appspot.com/12426024 TBR=egraether@chromium.org Review URL: https://codereview.chromium.org/13117002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190826 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Switch RenderingStats collection in Layer::Update() to ↵egraether@chromium.org2013-03-271-2/+1
| | | | | | | | | | | | | | RenderingStatsInstrumentation This change switches all of the remaining RenderingStats collection in composited mode to use RenderinStatsInstrumentation. BUG=181319 Review URL: https://chromiumcodereview.appspot.com/12426024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190817 0039d316-1c4b-4281-b951-d872f2087c98
* Part 10 of cc/ directory shuffles: layersjamesr@chromium.org2013-03-181-0/+61
Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 BUG=190824 TBR=enne@chromium.org, piman@chromium.org, jschuh@chromium.org, joth@chromium.org Review URL: https://codereview.chromium.org/12916002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188703 0039d316-1c4b-4281-b951-d872f2087c98