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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2881813002: Revert of gpu: GPU service scheduler. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/test/layouttest_support.cc » ('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 (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 #include "content/renderer/renderer_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/child/quota_dispatcher.h" 32 #include "content/child/quota_dispatcher.h"
33 #include "content/child/quota_message_filter.h" 33 #include "content/child/quota_message_filter.h"
34 #include "content/child/storage_util.h" 34 #include "content/child/storage_util.h"
35 #include "content/child/thread_safe_sender.h" 35 #include "content/child/thread_safe_sender.h"
36 #include "content/child/web_database_observer_impl.h" 36 #include "content/child/web_database_observer_impl.h"
37 #include "content/child/web_url_loader_impl.h" 37 #include "content/child/web_url_loader_impl.h"
38 #include "content/child/webfileutilities_impl.h" 38 #include "content/child/webfileutilities_impl.h"
39 #include "content/child/webmessageportchannel_impl.h" 39 #include "content/child/webmessageportchannel_impl.h"
40 #include "content/common/file_utilities_messages.h" 40 #include "content/common/file_utilities_messages.h"
41 #include "content/common/frame_messages.h" 41 #include "content/common/frame_messages.h"
42 #include "content/common/gpu_stream_constants.h"
43 #include "content/common/render_process_messages.h" 42 #include "content/common/render_process_messages.h"
44 #include "content/public/common/content_switches.h" 43 #include "content/public/common/content_switches.h"
45 #include "content/public/common/service_manager_connection.h" 44 #include "content/public/common/service_manager_connection.h"
46 #include "content/public/common/webplugininfo.h" 45 #include "content/public/common/webplugininfo.h"
47 #include "content/public/renderer/content_renderer_client.h" 46 #include "content/public/renderer/content_renderer_client.h"
48 #include "content/public/renderer/media_stream_utils.h" 47 #include "content/public/renderer/media_stream_utils.h"
49 #include "content/public/renderer/render_frame.h" 48 #include "content/public/renderer/render_frame.h"
50 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h" 49 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h"
51 #include "content/renderer/device_sensors/device_motion_event_pump.h" 50 #include "content/renderer/device_sensors/device_motion_event_pump.h"
52 #include "content/renderer/device_sensors/device_orientation_event_pump.h" 51 #include "content/renderer/device_sensors/device_orientation_event_pump.h"
(...skipping 14 matching lines...) Expand all
67 #include "content/renderer/render_frame_impl.h" 66 #include "content/renderer/render_frame_impl.h"
68 #include "content/renderer/render_thread_impl.h" 67 #include "content/renderer/render_thread_impl.h"
69 #include "content/renderer/renderer_clipboard_delegate.h" 68 #include "content/renderer/renderer_clipboard_delegate.h"
70 #include "content/renderer/webclipboard_impl.h" 69 #include "content/renderer/webclipboard_impl.h"
71 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 70 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
72 #include "content/renderer/webpublicsuffixlist_impl.h" 71 #include "content/renderer/webpublicsuffixlist_impl.h"
73 #include "device/gamepad/public/cpp/gamepads.h" 72 #include "device/gamepad/public/cpp/gamepads.h"
74 #include "gpu/command_buffer/client/gles2_interface.h" 73 #include "gpu/command_buffer/client/gles2_interface.h"
75 #include "gpu/config/gpu_info.h" 74 #include "gpu/config/gpu_info.h"
76 #include "gpu/ipc/client/gpu_channel_host.h" 75 #include "gpu/ipc/client/gpu_channel_host.h"
76 #include "gpu/ipc/common/gpu_stream_constants.h"
77 #include "ipc/ipc_sync_message_filter.h" 77 #include "ipc/ipc_sync_message_filter.h"
78 #include "media/audio/audio_output_device.h" 78 #include "media/audio/audio_output_device.h"
79 #include "media/blink/webcontentdecryptionmodule_impl.h" 79 #include "media/blink/webcontentdecryptionmodule_impl.h"
80 #include "media/filters/stream_parser_factory.h" 80 #include "media/filters/stream_parser_factory.h"
81 #include "ppapi/features/features.h" 81 #include "ppapi/features/features.h"
82 #include "services/service_manager/public/cpp/connector.h" 82 #include "services/service_manager/public/cpp/connector.h"
83 #include "services/service_manager/public/cpp/interface_provider.h" 83 #include "services/service_manager/public/cpp/interface_provider.h"
84 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 84 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
85 #include "storage/common/database/database_identifier.h" 85 #include "storage/common/database/database_identifier.h"
86 #include "storage/common/quota/quota_types.h" 86 #include "storage/common/quota/quota_types.h"
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 if (web_attributes.web_gl_version == 2) 1049 if (web_attributes.web_gl_version == 2)
1050 attributes.context_type = gpu::gles2::CONTEXT_TYPE_WEBGL2; 1050 attributes.context_type = gpu::gles2::CONTEXT_TYPE_WEBGL2;
1051 else 1051 else
1052 attributes.context_type = gpu::gles2::CONTEXT_TYPE_WEBGL1; 1052 attributes.context_type = gpu::gles2::CONTEXT_TYPE_WEBGL1;
1053 1053
1054 constexpr bool automatic_flushes = true; 1054 constexpr bool automatic_flushes = true;
1055 constexpr bool support_locking = false; 1055 constexpr bool support_locking = false;
1056 1056
1057 scoped_refptr<ui::ContextProviderCommandBuffer> provider( 1057 scoped_refptr<ui::ContextProviderCommandBuffer> provider(
1058 new ui::ContextProviderCommandBuffer( 1058 new ui::ContextProviderCommandBuffer(
1059 std::move(gpu_channel_host), kGpuStreamIdDefault, 1059 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
1060 kGpuStreamPriorityDefault, gpu::kNullSurfaceHandle, 1060 gpu::GpuStreamPriority::NORMAL, gpu::kNullSurfaceHandle,
1061 GURL(top_document_web_url), automatic_flushes, support_locking, 1061 GURL(top_document_web_url), automatic_flushes, support_locking,
1062 gpu::SharedMemoryLimits(), attributes, share_context, 1062 gpu::SharedMemoryLimits(), attributes, share_context,
1063 ui::command_buffer_metrics::OFFSCREEN_CONTEXT_FOR_WEBGL)); 1063 ui::command_buffer_metrics::OFFSCREEN_CONTEXT_FOR_WEBGL));
1064 return base::MakeUnique<WebGraphicsContext3DProviderImpl>( 1064 return base::MakeUnique<WebGraphicsContext3DProviderImpl>(
1065 std::move(provider), is_software_rendering); 1065 std::move(provider), is_software_rendering);
1066 } 1066 }
1067 1067
1068 //------------------------------------------------------------------------------ 1068 //------------------------------------------------------------------------------
1069 1069
1070 std::unique_ptr<blink::WebGraphicsContext3DProvider> 1070 std::unique_ptr<blink::WebGraphicsContext3DProvider>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 //------------------------------------------------------------------------------ 1296 //------------------------------------------------------------------------------
1297 void RendererBlinkPlatformImpl::RequestPurgeMemory() { 1297 void RendererBlinkPlatformImpl::RequestPurgeMemory() {
1298 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but 1298 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but
1299 // ChildMemoryCoordinator isn't always available as it's only initialized 1299 // ChildMemoryCoordinator isn't always available as it's only initialized
1300 // when kMemoryCoordinatorV0 is enabled. 1300 // when kMemoryCoordinatorV0 is enabled.
1301 // Use ChildMemoryCoordinator when memory coordinator is always enabled. 1301 // Use ChildMemoryCoordinator when memory coordinator is always enabled.
1302 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); 1302 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory();
1303 } 1303 }
1304 1304
1305 } // namespace content 1305 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698