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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/render_widget.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/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 attributes.stencil_size = 0; 423 attributes.stencil_size = 0;
424 attributes.samples = 0; 424 attributes.samples = 0;
425 attributes.sample_buffers = 0; 425 attributes.sample_buffers = 0;
426 attributes.bind_generates_resource = false; 426 attributes.bind_generates_resource = false;
427 attributes.lose_context_when_out_of_memory = true; 427 attributes.lose_context_when_out_of_memory = true;
428 const bool automatic_flushes = false; 428 const bool automatic_flushes = false;
429 return make_scoped_refptr(new ContextProviderCommandBuffer( 429 return make_scoped_refptr(new ContextProviderCommandBuffer(
430 std::move(gpu_channel_host), stream_id, stream_priority, 430 std::move(gpu_channel_host), stream_id, stream_priority,
431 gpu::kNullSurfaceHandle, 431 gpu::kNullSurfaceHandle,
432 GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext"), 432 GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext"),
433 gfx::PreferIntegratedGpu, automatic_flushes, support_locking, limits, 433 gl::PreferIntegratedGpu, automatic_flushes, support_locking, limits,
434 attributes, nullptr, type)); 434 attributes, nullptr, type));
435 } 435 }
436 436
437 } // namespace 437 } // namespace
438 438
439 // For measuring memory usage after each task. Behind a command line flag. 439 // For measuring memory usage after each task. Behind a command line flag.
440 class MemoryObserver : public base::MessageLoop::TaskObserver { 440 class MemoryObserver : public base::MessageLoop::TaskObserver {
441 public: 441 public:
442 MemoryObserver() {} 442 MemoryObserver() {}
443 ~MemoryObserver() override {} 443 ~MemoryObserver() override {}
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) 2089 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical)
2090 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; 2090 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate;
2091 2091
2092 blink::mainThreadIsolate()->MemoryPressureNotification( 2092 blink::mainThreadIsolate()->MemoryPressureNotification(
2093 v8_memory_pressure_level); 2093 v8_memory_pressure_level);
2094 blink::MemoryPressureNotificationToWorkerThreadIsolates( 2094 blink::MemoryPressureNotificationToWorkerThreadIsolates(
2095 v8_memory_pressure_level); 2095 v8_memory_pressure_level);
2096 } 2096 }
2097 2097
2098 } // namespace content 2098 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698