OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 | 1582 |
1583 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { | 1583 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { |
1584 return storage_partition_impl_; | 1584 return storage_partition_impl_; |
1585 } | 1585 } |
1586 | 1586 |
1587 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { | 1587 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
1588 command_line->AppendSwitchASCII( | 1588 command_line->AppendSwitchASCII( |
1589 switches::kNumRasterThreads, | 1589 switches::kNumRasterThreads, |
1590 base::IntToString(NumberOfRendererRasterThreads())); | 1590 base::IntToString(NumberOfRendererRasterThreads())); |
1591 | 1591 |
1592 if (IsGpuRasterizationEnabled()) | |
1593 command_line->AppendSwitch(switches::kEnableGpuRasterization); | |
1594 | |
1595 if (IsAsyncWorkerContextEnabled()) | 1592 if (IsAsyncWorkerContextEnabled()) |
1596 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext); | 1593 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext); |
1597 | 1594 |
1598 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1595 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
1599 if (msaa_sample_count >= 0) { | 1596 if (msaa_sample_count >= 0) { |
1600 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, | 1597 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, |
1601 base::IntToString(msaa_sample_count)); | 1598 base::IntToString(msaa_sample_count)); |
1602 } | 1599 } |
1603 | 1600 |
1604 if (IsZeroCopyUploadEnabled()) | 1601 if (IsZeroCopyUploadEnabled()) |
1605 command_line->AppendSwitch(switches::kEnableZeroCopy); | 1602 command_line->AppendSwitch(switches::kEnableZeroCopy); |
1606 if (!IsPartialRasterEnabled()) | 1603 if (!IsPartialRasterEnabled()) |
1607 command_line->AppendSwitch(switches::kDisablePartialRaster); | 1604 command_line->AppendSwitch(switches::kDisablePartialRaster); |
1608 | 1605 |
1609 if (IsForceGpuRasterizationEnabled()) | |
1610 command_line->AppendSwitch(switches::kForceGpuRasterization); | |
1611 | |
1612 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { | 1606 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { |
1613 command_line->AppendSwitch( | 1607 command_line->AppendSwitch( |
1614 switches::kEnableGpuMemoryBufferCompositorResources); | 1608 switches::kEnableGpuMemoryBufferCompositorResources); |
1615 } | 1609 } |
1616 | 1610 |
1617 if (IsMainFrameBeforeActivationEnabled()) | 1611 if (IsMainFrameBeforeActivationEnabled()) |
1618 command_line->AppendSwitch(cc::switches::kEnableMainFrameBeforeActivation); | 1612 command_line->AppendSwitch(cc::switches::kEnableMainFrameBeforeActivation); |
1619 | 1613 |
1620 cc::BufferToTextureTargetMap image_targets; | 1614 cc::BufferToTextureTargetMap image_targets; |
1621 for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST); | 1615 for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 switches::kEnableVtune, | 1775 switches::kEnableVtune, |
1782 switches::kEnableWebFontsInterventionTrigger, | 1776 switches::kEnableWebFontsInterventionTrigger, |
1783 switches::kEnableWebFontsInterventionV2, | 1777 switches::kEnableWebFontsInterventionV2, |
1784 switches::kEnableWebGLDraftExtensions, | 1778 switches::kEnableWebGLDraftExtensions, |
1785 switches::kEnableWebGLImageChromium, | 1779 switches::kEnableWebGLImageChromium, |
1786 switches::kEnableWebVR, | 1780 switches::kEnableWebVR, |
1787 switches::kExplicitlyAllowedPorts, | 1781 switches::kExplicitlyAllowedPorts, |
1788 switches::kForceDeviceScaleFactor, | 1782 switches::kForceDeviceScaleFactor, |
1789 switches::kForceDisplayList2dCanvas, | 1783 switches::kForceDisplayList2dCanvas, |
1790 switches::kForceGpuMemAvailableMb, | 1784 switches::kForceGpuMemAvailableMb, |
| 1785 switches::kForceGpuRasterization, |
1791 switches::kEnableCanvas2dDynamicRenderingModeSwitching, | 1786 switches::kEnableCanvas2dDynamicRenderingModeSwitching, |
1792 switches::kForceOverlayFullscreenVideo, | 1787 switches::kForceOverlayFullscreenVideo, |
1793 switches::kFullMemoryCrashReport, | 1788 switches::kFullMemoryCrashReport, |
1794 switches::kInertVisualViewport, | 1789 switches::kInertVisualViewport, |
1795 switches::kIPCConnectionTimeout, | 1790 switches::kIPCConnectionTimeout, |
1796 switches::kIsRunningInMash, | 1791 switches::kIsRunningInMash, |
1797 switches::kJavaScriptFlags, | 1792 switches::kJavaScriptFlags, |
1798 switches::kLoggingLevel, | 1793 switches::kLoggingLevel, |
1799 switches::kMainFrameResizesAreOrientationChanges, | 1794 switches::kMainFrameResizesAreOrientationChanges, |
1800 switches::kMaxUntiledLayerWidth, | 1795 switches::kMaxUntiledLayerWidth, |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3073 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3068 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3074 | 3069 |
3075 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3070 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3076 // Capture the error message in a crash key value. | 3071 // Capture the error message in a crash key value. |
3077 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3072 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3078 bad_message::ReceivedBadMessage(render_process_id, | 3073 bad_message::ReceivedBadMessage(render_process_id, |
3079 bad_message::RPH_MOJO_PROCESS_ERROR); | 3074 bad_message::RPH_MOJO_PROCESS_ERROR); |
3080 } | 3075 } |
3081 | 3076 |
3082 } // namespace content | 3077 } // namespace content |
OLD | NEW |