Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: cc/layer_tree_host.cc

Issue 11428091: Migrate the Android compositor to cc::Layer classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 , pageScalePinchZoomEnabled(false) 103 , pageScalePinchZoomEnabled(false)
104 , backgroundColorInsteadOfCheckerboard(false) 104 , backgroundColorInsteadOfCheckerboard(false)
105 , showOverdrawInTracing(false) 105 , showOverdrawInTracing(false)
106 , refreshRate(0) 106 , refreshRate(0)
107 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) 107 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max())
108 , defaultTileSize(gfx::Size(256, 256)) 108 , defaultTileSize(gfx::Size(256, 256))
109 , maxUntiledLayerSize(gfx::Size(512, 512)) 109 , maxUntiledLayerSize(gfx::Size(512, 512))
110 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) 110 , minimumOcclusionTrackingSize(gfx::Size(160, 160))
111 { 111 {
112 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore. 112 // TODO(danakj): Move this to chromium when we don't go through the WebKit A PI anymore.
113 implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches: :kEnableImplSidePainting);
113 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap); 114 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k EnablePartialSwap);
114 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard); 115 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has Switch(switches::kBackgroundColorInsteadOfCheckerboard);
115 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw); 116 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches ::kTraceOverdraw);
116 117
117 initialDebugState.showPropertyChangedRects = CommandLine::ForCurrentProcess( )->HasSwitch(cc::switches::kShowPropertyChangedRects); 118 initialDebugState.showPropertyChangedRects = CommandLine::ForCurrentProcess( )->HasSwitch(cc::switches::kShowPropertyChangedRects);
118 initialDebugState.showSurfaceDamageRects = CommandLine::ForCurrentProcess()- >HasSwitch(cc::switches::kShowSurfaceDamageRects); 119 initialDebugState.showSurfaceDamageRects = CommandLine::ForCurrentProcess()- >HasSwitch(cc::switches::kShowSurfaceDamageRects);
119 initialDebugState.showScreenSpaceRects = CommandLine::ForCurrentProcess()->H asSwitch(cc::switches::kShowScreenSpaceRects); 120 initialDebugState.showScreenSpaceRects = CommandLine::ForCurrentProcess()->H asSwitch(cc::switches::kShowScreenSpaceRects);
120 initialDebugState.showReplicaScreenSpaceRects = CommandLine::ForCurrentProce ss()->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects); 121 initialDebugState.showReplicaScreenSpaceRects = CommandLine::ForCurrentProce ss()->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects);
121 initialDebugState.showOccludingRects = CommandLine::ForCurrentProcess()->Has Switch(cc::switches::kShowOccludingRects); 122 initialDebugState.showOccludingRects = CommandLine::ForCurrentProcess()->Has Switch(cc::switches::kShowOccludingRects);
122 initialDebugState.showNonOccludingRects = CommandLine::ForCurrentProcess()-> HasSwitch(cc::switches::kShowNonOccludingRects); 123 initialDebugState.showNonOccludingRects = CommandLine::ForCurrentProcess()-> HasSwitch(cc::switches::kShowNonOccludingRects);
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 else 910 else
910 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); 911 layer->notifyAnimationFinished(wallClockTime.ToDoubleT());
911 } 912 }
912 } 913 }
913 914
914 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 915 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
915 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 916 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
916 } 917 }
917 918
918 } // namespace cc 919 } // namespace cc
OLDNEW
« no previous file with comments | « android_webview/native/webview_native.gyp ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698