summaryrefslogtreecommitdiffstats
path: root/cc/resources
Commit message (Collapse)AuthorAgeFilesLines
* Add a |scope| argument to TRACE_EVENT_INSTANT* and require its presence.simonjam@chromium.org2013-03-261-2/+2
| | | | | | | | | | | | | | The scope indicates how long the vertical line should be in the tracing UI. It can be global (full screen), process or thread (fill those tracks), or local (the original style for INSTANT). BUG=None Review URL: https://chromiumcodereview.appspot.com/12252058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190577 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Changed total_pixels_rasterized to be a return valuevmpstr@chromium.org2013-03-263-14/+14
| | | | | | | | | | | | | | It's a bit awkward calling Raster and passing an output parameter that is never used. Instead, it makes sense to make it a return value, and simply not capture it if its not required. BUG=223590 Review URL: https://chromiumcodereview.appspot.com/12457031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190569 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Avoid pointless gfx::Point/Size contructors when making Rects.danakj@chromium.org2013-03-264-11/+11
| | | | | | | | | | | | Instead of gfx::Rect(gfx::Point(), gfx::Size(3, 4)), use gfx::Rect(0, 0, 3, 4). Instead of gfx::Rect(gfx::Point(), some_size), use gfx::Rect(some_size). R=jamesr NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12967018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190547 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Fix capitalization style in chromified files.danakj@chromium.org2013-03-2514-57/+57
| | | | | | | | | | | | | | | | | Style-only change. Many already-chromified files missed a variable or function name here and there. This grabs (hopefully) all of them. For the record, I found these with: git gs '[^a-zA-Z0-9_>\."][a-jl-z]\+[A-Z][A-Za-z0-9_]*\($\|[ !=;,\.^&*)"]\)' R=enne BUG= Review URL: https://chromiumcodereview.appspot.com/12676029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190326 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Ensure tile exists before forcing uploadvmpstr@chromium.org2013-03-241-0/+1
| | | | | | | | | Small fix to make sure that the tile pointer is valid Review URL: https://chromiumcodereview.appspot.com/12886039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190215 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify ResourceUpdateenne@chromium.org2013-03-242-40/+38
| | | | | | | | | | R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12737009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190158 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify rendering_statsalexst@chromium.org2013-03-244-8/+10
| | | | | | | | | | | | BUG= TBR=jamesr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189428 Review URL: https://chromiumcodereview.appspot.com/12780025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190140 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Auto-LCD text for impl-side paintingenne@chromium.org2013-03-236-18/+58
| | | | | | | | | | R=alokp@chromium.org BUG=165775 Review URL: https://chromiumcodereview.appspot.com/12543031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190098 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Inline simple PrioritizedResource::ResourceId() method.danakj@chromium.org2013-03-233-11/+7
| | | | | | | | | | | | Move this to the header and name it resource_id(). R=jamesr BUG= Review URL: https://chromiumcodereview.appspot.com/12594016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190083 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Fix style errors with indented returnsenne@chromium.org2013-03-221-6/+8
| | | | | | | | | | | | | A few remaining files had four-space indent. NOTRY=true R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12992005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189882 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify layer quad unittestenne@chromium.org2013-03-221-26/+24
| | | | | | | | | | | NOTRY=true R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12901004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189837 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify ResourceUpdateControllerTest.reveman@chromium.org2013-03-221-413/+410
| | | | | | | | | | R=enne@chromium.org BUG=none NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12770010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189835 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify scoped resource unittestenne@chromium.org2013-03-221-71/+77
| | | | | | | | | | | NOTRY=true R=jamesr@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12647020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189826 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify FakeTimeSourceClient, FakeThread, FakeTimeSource, ↵reveman@chromium.org2013-03-221-15/+15
| | | | | | | | | | | | | FakeDelayBasedTimeSource, FakeFrameRateController. R=enne@chromium.org BUG=none NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12806008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189822 0039d316-1c4b-4281-b951-d872f2087c98
* Libcxx cleanup.eugenis@chromium.org2013-03-221-0/+1
| | | | | | | | | | | | | Missing <vector> include in picture.h. map<> requires a complete type for the second template argument. BUG=178409 R=reveman@chromium.org,matthewjheaney@chromium.org,acolwell@chromium.org Review URL: https://codereview.chromium.org/12950003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189777 0039d316-1c4b-4281-b951-d872f2087c98
* cc chromification: tiled_layer_test_common.h/ccpiman@chromium.org2013-03-221-10/+10
| | | | | | | | BUG=144577 Review URL: https://codereview.chromium.org/12458014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189748 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify FakeOutputSurfaceenne@chromium.org2013-03-212-5/+5
| | | | | | | | | | | NOTRY=true R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12731017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189639 0039d316-1c4b-4281-b951-d872f2087c98
* cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStatsegraether@chromium.org2013-03-214-82/+56
| | | | | | | | | | | | | | | | | | | | | | This change adds the class RenderingStatsInstrumentation that manages conditional saving and thread-specific access to a private RenderingStats instance. An instance of RenderingStatsRecorder is created on LayerTreeHost, which passes references to LayerTreeHostImpl and TileManager. Access to reading and writing on the internal RenderingStats instance is guarded by a lock. All rendering stats saving in LayerTreeHost, Single-/ThreadProxy, LayerTreeHostImpl and TileManager has been switched to use the RenderingStatsInstrumentation. Stats collection within Layer::update() still follows the original structure to keep this change small. BUG=181319 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189475 Review URL: https://chromiumcodereview.appspot.com/12519006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189621 0039d316-1c4b-4281-b951-d872f2087c98
* Check if priority actually changed in Tile::SetPriority()wangxianzhu@chromium.org2013-03-212-0/+17
| | | | | | | | | | | | To prevent unnecessary TileManager::WillModifyTilePriority() calls which blocks ActivatePendingTree(), commits and the whole event queue. BUG=181708 Review URL: https://chromiumcodereview.appspot.com/12912008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189543 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify resource_update_queuealexst@chromium.org2013-03-219-97/+85
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/12962007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189530 0039d316-1c4b-4281-b951-d872f2087c98
* cc chromification: ressource_provider_unittest.ccpiman@chromium.org2013-03-211-926/+1058
| | | | | | | | BUG=144577 Review URL: https://codereview.chromium.org/12662012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189509 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 189475 "cc:: Add RenderingStatsInstrumentation to manage ..."tapted@chromium.org2013-03-214-56/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | semi-speculative revert for cc_unittests failures - see bug. > cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats > > This change adds the class RenderingStatsInstrumentation that manages conditional > saving and thread-specific access to a private RenderingStats instance. > An instance of RenderingStatsRecorder is created on LayerTreeHost, which > passes references to LayerTreeHostImpl and TileManager. Access to reading > and writing on the internal RenderingStats instance is guarded by a lock. > > All rendering stats saving in LayerTreeHost, Single-/ThreadProxy, > LayerTreeHostImpl and TileManager has been switched to use the > RenderingStatsInstrumentation. Stats collection within Layer::update() still > follows the original structure to keep this change small. > > BUG=181319 > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/12519006 TBR=egraether@chromium.org Review URL: https://codereview.chromium.org/12544031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189497 0039d316-1c4b-4281-b951-d872f2087c98
* cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStatsegraether@chromium.org2013-03-214-82/+56
| | | | | | | | | | | | | | | | | | | | This change adds the class RenderingStatsInstrumentation that manages conditional saving and thread-specific access to a private RenderingStats instance. An instance of RenderingStatsRecorder is created on LayerTreeHost, which passes references to LayerTreeHostImpl and TileManager. Access to reading and writing on the internal RenderingStats instance is guarded by a lock. All rendering stats saving in LayerTreeHost, Single-/ThreadProxy, LayerTreeHostImpl and TileManager has been switched to use the RenderingStatsInstrumentation. Stats collection within Layer::update() still follows the original structure to keep this change small. BUG=181319 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12519006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189475 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 189428 "cc: Chromify rendering_stats"danakj@chromium.org2013-03-205-22/+21
| | | | | | | | | | | | | | | | | | | | | | | | The naming change broke the scrolling benchmark or the perf waterfall. http://build.chromium.org/p/chromium.perf/builders/Linux%2520Perf%2520%25281%2529/builds/21581/steps/scrolling_benchmark/logs/stdio this enumerator is exposed API to JS extensions like the gpu benchmarking extension, so this breaks benchmarking. We'll have to figure out how to stage this with changes to the gpu benchmarking harness. > cc: Chromify rendering_stats > > > BUG= > > TBR=jamesr@chromium.org > > Review URL: https://chromiumcodereview.appspot.com/12780025 TBR=alexst@chromium.org Review URL: https://codereview.chromium.org/12496017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189448 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify rendering_statsalexst@chromium.org2013-03-205-21/+22
| | | | | | | | | | BUG= TBR=jamesr@chromium.org Review URL: https://chromiumcodereview.appspot.com/12780025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189428 0039d316-1c4b-4281-b951-d872f2087c98
* Chromify prioritized_resource_manager.* and prioritized_resource_unittest.cc.hartmanng@chromium.org2013-03-205-1029/+1176
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/12731010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189404 0039d316-1c4b-4281-b951-d872f2087c98
* Removing a DCHECK from PictureLayerTiling::ExpandRectEquallyToAreaBoundedBy ↵whunt@chromium.org2013-03-202-1/+11
| | | | | | | | | | | which failed sometimes (turns out the condition does not hold in practice) BUG= Review URL: https://chromiumcodereview.appspot.com/12516021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189268 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify PrioritizedResourceenne@chromium.org2013-03-2012-419/+435
| | | | | | | | | | R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12906008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189241 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove unused alignment parameter from PictureLayerTilingenne@chromium.org2013-03-206-30/+11
| | | | | | | | | | | | This is no longer needed now that PictureLayerTiling no longer stretches. R=brianderson@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12440051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189222 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify ManagedMemoryPolicyenne@chromium.org2013-03-192-68/+65
| | | | | | | | | | R=jamesr@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12886033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189140 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Schedule cheap raster tasks based on anticipated draw timeskyostil@chromium.org2013-03-192-26/+23
| | | | | | | | | BUG=181586 Review URL: https://chromiumcodereview.appspot.com/12623015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189096 0039d316-1c4b-4281-b951-d872f2087c98
* Alternate implementation of ExpandRectEquallyToAreaBoundedBy.whunt@chromium.org2013-03-191-197/+87
| | | | | | | | | | | This patch is an alternate implementation of ExpandRectEquallyToAreaBoundedBy. It works by iterating over a sorted list of edge events and avoids special cases. Thanks to Dana's excellent test coverage I'm pretty confident it implements the same solution. BUG= Review URL: https://chromiumcodereview.appspot.com/12449012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188922 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Merge GatherPixelRefs and AnalyzeInRectvmpstr@chromium.org2013-03-183-0/+11
| | | | | | | | | | | | | | Both GatherPixelRefs and AnalyzeInRect use the same loop, and a similar canvas to do their work. It makes sense to merge the two so part of the work is not replicated. BUG=179552 Review URL: https://chromiumcodereview.appspot.com/12388095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188879 0039d316-1c4b-4281-b951-d872f2087c98
* cc/resource/resource.h: Fixup chrome stylepiman@chromium.org2013-03-181-2/+4
| | | | | | | | | BUG=144577 Review URL: https://chromiumcodereview.appspot.com/12620025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188827 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Fix style errors in TilePriority/TileManagerenne@chromium.org2013-03-184-36/+47
| | | | | | | | | | R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12679007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188815 0039d316-1c4b-4281-b951-d872f2087c98
* Part 11 of cc/ directory shuffles: fix up stragglersjamesr@chromium.org2013-03-183-1/+201
| | | | | | | | | | | | | | | Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 This moves files left behind in previous patches and completes the series. BUG=190824 TBR=enne@chromium.org Review URL: https://codereview.chromium.org/12916002 Review URL: https://codereview.chromium.org/12604010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188707 0039d316-1c4b-4281-b951-d872f2087c98
* Part 10 of cc/ directory shuffles: layersjamesr@chromium.org2013-03-181-1/+1
| | | | | | | | | | | 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
* Part 9 of cc/ directory shuffles: schedulerjamesr@chromium.org2013-03-181-1/+1
| | | | | | | | | | | Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 BUG=190824 TBR=enne@chromium.org Review URL: https://codereview.chromium.org/12471008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188697 0039d316-1c4b-4281-b951-d872f2087c98
* Part 8 of cc/ directory shuffles: resourcesjamesr@chromium.org2013-03-1876-0/+12878
Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 BUG=190824 TBR=enne@chromium.org, piman@chromium.org, jschuh@chromium.org Review URL: https://codereview.chromium.org/12471007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188696 0039d316-1c4b-4281-b951-d872f2087c98