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

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

Issue 2902773004: cc: Add finch feature flag for checker-imaging. (Closed)
Patch Set: pass Created 3 years, 6 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
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 command_line->AppendSwitch(switches::kDisablePartialRaster); 1776 command_line->AppendSwitch(switches::kDisablePartialRaster);
1777 1777
1778 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { 1778 if (IsGpuMemoryBufferCompositorResourcesEnabled()) {
1779 command_line->AppendSwitch( 1779 command_line->AppendSwitch(
1780 switches::kEnableGpuMemoryBufferCompositorResources); 1780 switches::kEnableGpuMemoryBufferCompositorResources);
1781 } 1781 }
1782 1782
1783 if (IsMainFrameBeforeActivationEnabled()) 1783 if (IsMainFrameBeforeActivationEnabled())
1784 command_line->AppendSwitch(cc::switches::kEnableMainFrameBeforeActivation); 1784 command_line->AppendSwitch(cc::switches::kEnableMainFrameBeforeActivation);
1785 1785
1786 if (IsCheckerImagingEnabled())
1787 command_line->AppendSwitch(cc::switches::kEnableCheckerImaging);
1788
1786 cc::BufferToTextureTargetMap image_targets; 1789 cc::BufferToTextureTargetMap image_targets;
1787 for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST); 1790 for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST);
1788 ++usage_idx) { 1791 ++usage_idx) {
1789 gfx::BufferUsage usage = static_cast<gfx::BufferUsage>(usage_idx); 1792 gfx::BufferUsage usage = static_cast<gfx::BufferUsage>(usage_idx);
1790 for (int format_idx = 0; 1793 for (int format_idx = 0;
1791 format_idx <= static_cast<int>(gfx::BufferFormat::LAST); 1794 format_idx <= static_cast<int>(gfx::BufferFormat::LAST);
1792 ++format_idx) { 1795 ++format_idx) {
1793 gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx); 1796 gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx);
1794 uint32_t target = gpu::GetImageTextureTarget(format, usage); 1797 uint32_t target = gpu::GetImageTextureTarget(format, usage);
1795 image_targets[std::make_pair(usage, format)] = target; 1798 image_targets[std::make_pair(usage, format)] = target;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 switches::kV, 2013 switches::kV,
2011 switches::kV8CacheStrategiesForCacheStorage, 2014 switches::kV8CacheStrategiesForCacheStorage,
2012 switches::kVideoThreads, 2015 switches::kVideoThreads,
2013 switches::kVideoUnderflowThresholdMs, 2016 switches::kVideoUnderflowThresholdMs,
2014 switches::kVModule, 2017 switches::kVModule,
2015 // Please keep these in alphabetical order. Compositor switches here should 2018 // Please keep these in alphabetical order. Compositor switches here should
2016 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. 2019 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc.
2017 cc::switches::kDisableCompositedAntialiasing, 2020 cc::switches::kDisableCompositedAntialiasing,
2018 cc::switches::kDisableThreadedAnimation, 2021 cc::switches::kDisableThreadedAnimation,
2019 cc::switches::kDisallowNonExactResourceReuse, 2022 cc::switches::kDisallowNonExactResourceReuse,
2020 cc::switches::kEnableCheckerImaging,
2021 cc::switches::kEnableGpuBenchmarking, 2023 cc::switches::kEnableGpuBenchmarking,
2022 cc::switches::kEnableLayerLists, 2024 cc::switches::kEnableLayerLists,
2023 cc::switches::kEnableSurfaceSynchronization, 2025 cc::switches::kEnableSurfaceSynchronization,
2024 cc::switches::kEnableTileCompression, 2026 cc::switches::kEnableTileCompression,
2025 cc::switches::kShowCompositedLayerBorders, 2027 cc::switches::kShowCompositedLayerBorders,
2026 cc::switches::kShowFPSCounter, 2028 cc::switches::kShowFPSCounter,
2027 cc::switches::kShowLayerAnimationBounds, 2029 cc::switches::kShowLayerAnimationBounds,
2028 cc::switches::kShowPropertyChangedRects, 2030 cc::switches::kShowPropertyChangedRects,
2029 cc::switches::kShowScreenSpaceRects, 2031 cc::switches::kShowScreenSpaceRects,
2030 cc::switches::kShowSurfaceDamageRects, 2032 cc::switches::kShowSurfaceDamageRects,
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
3348 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3350 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3349 3351
3350 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3352 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3351 // Capture the error message in a crash key value. 3353 // Capture the error message in a crash key value.
3352 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3354 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3353 bad_message::ReceivedBadMessage(render_process_id, 3355 bad_message::ReceivedBadMessage(render_process_id,
3354 bad_message::RPH_MOJO_PROCESS_ERROR); 3356 bad_message::RPH_MOJO_PROCESS_ERROR);
3355 } 3357 }
3356 3358
3357 } // namespace content 3359 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698