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

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

Issue 257903002: Fix for pinch virtual viewport flag wasn't fully enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OS-check in one place. Made flag enable/disable Created 6 years, 7 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 933
934 bool RenderProcessHostImpl::IsGuest() const { 934 bool RenderProcessHostImpl::IsGuest() const {
935 return is_guest_; 935 return is_guest_;
936 } 936 }
937 937
938 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { 938 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const {
939 return storage_partition_impl_; 939 return storage_partition_impl_;
940 } 940 }
941 941
942 static void AppendGpuCommandLineFlags(CommandLine* command_line) { 942 static void AppendGpuCommandLineFlags(CommandLine* command_line) {
943 if (IsPinchVirtualViewportEnabled())
bokan 2014/04/25 22:07:25 Not sure if this qualifies as a GPU command line (
piman 2014/04/25 22:44:40 Maybe we can rename as AppendCompositorCommandLine
bokan 2014/04/25 23:03:46 Done.
944 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport);
945
943 if (IsThreadedCompositingEnabled()) 946 if (IsThreadedCompositingEnabled())
944 command_line->AppendSwitch(switches::kEnableThreadedCompositing); 947 command_line->AppendSwitch(switches::kEnableThreadedCompositing);
945 948
946 if (IsDelegatedRendererEnabled()) 949 if (IsDelegatedRendererEnabled())
947 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); 950 command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
948 951
949 if (IsImplSidePaintingEnabled()) 952 if (IsImplSidePaintingEnabled())
950 command_line->AppendSwitch(switches::kEnableImplSidePainting); 953 command_line->AppendSwitch(switches::kEnableImplSidePainting);
951 954
952 if (content::IsGpuRasterizationEnabled()) 955 if (content::IsGpuRasterizationEnabled())
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 switches::kWebGLCommandBufferSizeKb, 1131 switches::kWebGLCommandBufferSizeKb,
1129 // Please keep these in alphabetical order. Compositor switches here should 1132 // Please keep these in alphabetical order. Compositor switches here should
1130 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. 1133 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc.
1131 cc::switches::kCompositeToMailbox, 1134 cc::switches::kCompositeToMailbox,
1132 cc::switches::kDisableCompositedAntialiasing, 1135 cc::switches::kDisableCompositedAntialiasing,
1133 cc::switches::kDisableCompositorTouchHitTesting, 1136 cc::switches::kDisableCompositorTouchHitTesting,
1134 cc::switches::kDisableMainFrameBeforeActivation, 1137 cc::switches::kDisableMainFrameBeforeActivation,
1135 cc::switches::kDisableMainFrameBeforeDraw, 1138 cc::switches::kDisableMainFrameBeforeDraw,
1136 cc::switches::kDisableThreadedAnimation, 1139 cc::switches::kDisableThreadedAnimation,
1137 cc::switches::kEnableGpuBenchmarking, 1140 cc::switches::kEnableGpuBenchmarking,
1138 cc::switches::kEnablePinchVirtualViewport,
1139 cc::switches::kEnableMainFrameBeforeActivation, 1141 cc::switches::kEnableMainFrameBeforeActivation,
1140 cc::switches::kEnableTopControlsPositionCalculation, 1142 cc::switches::kEnableTopControlsPositionCalculation,
1141 cc::switches::kMaxTilesForInterestArea, 1143 cc::switches::kMaxTilesForInterestArea,
1142 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, 1144 cc::switches::kMaxUnusedResourceMemoryUsagePercentage,
1143 cc::switches::kShowCompositedLayerBorders, 1145 cc::switches::kShowCompositedLayerBorders,
1144 cc::switches::kShowFPSCounter, 1146 cc::switches::kShowFPSCounter,
1145 cc::switches::kShowLayerAnimationBounds, 1147 cc::switches::kShowLayerAnimationBounds,
1146 cc::switches::kShowNonOccludingRects, 1148 cc::switches::kShowNonOccludingRects,
1147 cc::switches::kShowOccludingRects, 1149 cc::switches::kShowOccludingRects,
1148 cc::switches::kShowPropertyChangedRects, 1150 cc::switches::kShowPropertyChangedRects,
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 mojo::ScopedMessagePipeHandle handle) { 2066 mojo::ScopedMessagePipeHandle handle) {
2065 if (!mojo_application_host_->did_activate()) 2067 if (!mojo_application_host_->did_activate())
2066 mojo_application_host_->Activate(this, GetHandle()); 2068 mojo_application_host_->Activate(this, GetHandle());
2067 2069
2068 mojo::AllocationScope scope; 2070 mojo::AllocationScope scope;
2069 mojo_application_host_->shell_client()->AcceptConnection(service_name, 2071 mojo_application_host_->shell_client()->AcceptConnection(service_name,
2070 handle.Pass()); 2072 handle.Pass());
2071 } 2073 }
2072 2074
2073 } // namespace content 2075 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698