| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "cc/font_atlas.h" | 10 #include "cc/font_atlas.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 , pageScalePinchZoomEnabled(false) | 55 , pageScalePinchZoomEnabled(false) |
| 56 , backgroundColorInsteadOfCheckerboard(false) | 56 , backgroundColorInsteadOfCheckerboard(false) |
| 57 , showOverdrawInTracing(false) | 57 , showOverdrawInTracing(false) |
| 58 , refreshRate(0) | 58 , refreshRate(0) |
| 59 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) | 59 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) |
| 60 , defaultTileSize(gfx::Size(256, 256)) | 60 , defaultTileSize(gfx::Size(256, 256)) |
| 61 , maxUntiledLayerSize(gfx::Size(512, 512)) | 61 , maxUntiledLayerSize(gfx::Size(512, 512)) |
| 62 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) | 62 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) |
| 63 { | 63 { |
| 64 // TODO(danakj): Move this to chromium when we don't go through the WebKit A
PI anymore. | 64 // TODO(danakj): Move this to chromium when we don't go through the WebKit A
PI anymore. |
| 65 implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches:
:kEnableImplSidePainting); |
| 65 showPropertyChangedRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::s
witches::kShowPropertyChangedRects); | 66 showPropertyChangedRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::s
witches::kShowPropertyChangedRects); |
| 66 showSurfaceDamageRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kShowSurfaceDamageRects); | 67 showSurfaceDamageRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kShowSurfaceDamageRects); |
| 67 showScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switc
hes::kShowScreenSpaceRects); | 68 showScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switc
hes::kShowScreenSpaceRects); |
| 68 showReplicaScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc
::switches::kShowReplicaScreenSpaceRects); | 69 showReplicaScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc
::switches::kShowReplicaScreenSpaceRects); |
| 69 showOccludingRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switche
s::kShowOccludingRects); | 70 showOccludingRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switche
s::kShowOccludingRects); |
| 70 showNonOccludingRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::swit
ches::kShowNonOccludingRects); | 71 showNonOccludingRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::swit
ches::kShowNonOccludingRects); |
| 71 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k
EnablePartialSwap); | 72 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k
EnablePartialSwap); |
| 72 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has
Switch(switches::kBackgroundColorInsteadOfCheckerboard); | 73 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has
Switch(switches::kBackgroundColorInsteadOfCheckerboard); |
| 73 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches
::kTraceOverdraw); | 74 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches
::kTraceOverdraw); |
| 74 } | 75 } |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 else | 858 else |
| 858 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); | 859 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); |
| 859 } | 860 } |
| 860 } | 861 } |
| 861 | 862 |
| 862 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 863 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 863 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 864 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 864 } | 865 } |
| 865 | 866 |
| 866 } // namespace cc | 867 } // namespace cc |
| OLD | NEW |