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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to account for re-naming to PaintedScrollbarLayer. Created 7 years, 3 months 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 switches::kDefaultTileHeight, 945 switches::kDefaultTileHeight,
946 switches::kMaxUntiledLayerWidth, 946 switches::kMaxUntiledLayerWidth,
947 switches::kMaxUntiledLayerHeight, 947 switches::kMaxUntiledLayerHeight,
948 switches::kEnableViewport, 948 switches::kEnableViewport,
949 switches::kEnableInbandTextTracks, 949 switches::kEnableInbandTextTracks,
950 switches::kEnableOpusPlayback, 950 switches::kEnableOpusPlayback,
951 switches::kEnableVp8AlphaPlayback, 951 switches::kEnableVp8AlphaPlayback,
952 switches::kEnableEac3Playback, 952 switches::kEnableEac3Playback,
953 switches::kForceDeviceScaleFactor, 953 switches::kForceDeviceScaleFactor,
954 switches::kFullMemoryCrashReport, 954 switches::kFullMemoryCrashReport,
955 #if defined(OS_ANDROID)
956 switches::kHideScrollbars,
957 #endif
958 #if !defined (GOOGLE_CHROME_BUILD) 955 #if !defined (GOOGLE_CHROME_BUILD)
959 // These are unsupported and not fully tested modes, so don't enable them 956 // These are unsupported and not fully tested modes, so don't enable them
960 // for official Google Chrome builds. 957 // for official Google Chrome builds.
961 switches::kInProcessPlugins, 958 switches::kInProcessPlugins,
962 #endif // GOOGLE_CHROME_BUILD 959 #endif // GOOGLE_CHROME_BUILD
963 switches::kJavaScriptFlags, 960 switches::kJavaScriptFlags,
964 switches::kLoggingLevel, 961 switches::kLoggingLevel,
965 switches::kMemoryMetrics, 962 switches::kMemoryMetrics,
966 #if defined(OS_ANDROID) 963 #if defined(OS_ANDROID)
967 switches::kNetworkCountryIso, 964 switches::kNetworkCountryIso,
(...skipping 15 matching lines...) Expand all
983 switches::kShowPaintRects, 980 switches::kShowPaintRects,
984 switches::kSitePerProcess, 981 switches::kSitePerProcess,
985 switches::kStatsCollectionController, 982 switches::kStatsCollectionController,
986 switches::kTestSandbox, 983 switches::kTestSandbox,
987 switches::kTouchEvents, 984 switches::kTouchEvents,
988 switches::kTraceStartup, 985 switches::kTraceStartup,
989 // This flag needs to be propagated to the renderer process for 986 // This flag needs to be propagated to the renderer process for
990 // --in-process-webgl. 987 // --in-process-webgl.
991 switches::kUseGL, 988 switches::kUseGL,
992 switches::kUseMobileUserAgent, 989 switches::kUseMobileUserAgent,
990 switches::kUseSolidColorScrollbars,
993 switches::kUserAgent, 991 switches::kUserAgent,
994 switches::kV, 992 switches::kV,
995 switches::kVideoThreads, 993 switches::kVideoThreads,
996 switches::kVModule, 994 switches::kVModule,
997 switches::kWebCoreLogChannels, 995 switches::kWebCoreLogChannels,
998 switches::kEnableWebGLDraftExtensions, 996 switches::kEnableWebGLDraftExtensions,
999 switches::kEnableHTMLImports, 997 switches::kEnableHTMLImports,
1000 switches::kEnableInputModeAttribute, 998 switches::kEnableInputModeAttribute,
1001 switches::kTraceToConsole, 999 switches::kTraceToConsole,
1002 switches::kEnableDeviceMotion, 1000 switches::kEnableDeviceMotion,
(...skipping 19 matching lines...) Expand all
1022 cc::switches::kNumRasterThreads, 1020 cc::switches::kNumRasterThreads,
1023 cc::switches::kShowCompositedLayerBorders, 1021 cc::switches::kShowCompositedLayerBorders,
1024 cc::switches::kShowFPSCounter, 1022 cc::switches::kShowFPSCounter,
1025 cc::switches::kShowNonOccludingRects, 1023 cc::switches::kShowNonOccludingRects,
1026 cc::switches::kShowOccludingRects, 1024 cc::switches::kShowOccludingRects,
1027 cc::switches::kShowPropertyChangedRects, 1025 cc::switches::kShowPropertyChangedRects,
1028 cc::switches::kShowReplicaScreenSpaceRects, 1026 cc::switches::kShowReplicaScreenSpaceRects,
1029 cc::switches::kShowScreenSpaceRects, 1027 cc::switches::kShowScreenSpaceRects,
1030 cc::switches::kShowSurfaceDamageRects, 1028 cc::switches::kShowSurfaceDamageRects,
1031 cc::switches::kSlowDownRasterScaleFactor, 1029 cc::switches::kSlowDownRasterScaleFactor,
1030 cc::switches::kSolidColorScrollbarColor,
1032 cc::switches::kStrictLayerPropertyChangeChecking, 1031 cc::switches::kStrictLayerPropertyChangeChecking,
1033 cc::switches::kTopControlsHeight, 1032 cc::switches::kTopControlsHeight,
1034 cc::switches::kTopControlsHideThreshold, 1033 cc::switches::kTopControlsHideThreshold,
1035 cc::switches::kTopControlsShowThreshold, 1034 cc::switches::kTopControlsShowThreshold,
1036 cc::switches::kTraceOverdraw, 1035 cc::switches::kTraceOverdraw,
1037 cc::switches::kUseMapImage, 1036 cc::switches::kUseMapImage,
1038 }; 1037 };
1039 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1038 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1040 arraysize(kSwitchNames)); 1039 arraysize(kSwitchNames));
1041 1040
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 // Skip widgets in other processes. 1768 // Skip widgets in other processes.
1770 if (widgets[i]->GetProcess()->GetID() != GetID()) 1769 if (widgets[i]->GetProcess()->GetID() != GetID())
1771 continue; 1770 continue;
1772 1771
1773 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1772 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1774 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1773 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1775 } 1774 }
1776 } 1775 }
1777 1776
1778 } // namespace content 1777 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698