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

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

Issue 1937313003: Hide WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: construct: . 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
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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 gpu::gles2::ContextCreationAttribHelper attributes; 412 gpu::gles2::ContextCreationAttribHelper attributes;
413 attributes.alpha_size = -1; 413 attributes.alpha_size = -1;
414 attributes.depth_size = 0; 414 attributes.depth_size = 0;
415 attributes.stencil_size = 0; 415 attributes.stencil_size = 0;
416 attributes.samples = 0; 416 attributes.samples = 0;
417 attributes.sample_buffers = 0; 417 attributes.sample_buffers = 0;
418 attributes.bind_generates_resource = false; 418 attributes.bind_generates_resource = false;
419 attributes.lose_context_when_out_of_memory = true; 419 attributes.lose_context_when_out_of_memory = true;
420 constexpr bool automatic_flushes = false; 420 constexpr bool automatic_flushes = false;
421 return make_scoped_refptr(new ContextProviderCommandBuffer( 421 return make_scoped_refptr(new ContextProviderCommandBuffer(
422 base::WrapUnique(new WebGraphicsContext3DCommandBufferImpl( 422 std::move(gpu_channel_host), gpu::kNullSurfaceHandle,
423 gpu::kNullSurfaceHandle, 423 GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext"),
424 GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext"), 424 gfx::PreferIntegratedGpu, automatic_flushes, gpu::SharedMemoryLimits(),
425 std::move(gpu_channel_host), gfx::PreferIntegratedGpu, 425 attributes, nullptr, type));
426 automatic_flushes)),
427 gpu::SharedMemoryLimits(), attributes, nullptr, type));
428 } 426 }
429 427
430 } // namespace 428 } // namespace
431 429
432 // For measuring memory usage after each task. Behind a command line flag. 430 // For measuring memory usage after each task. Behind a command line flag.
433 class MemoryObserver : public base::MessageLoop::TaskObserver { 431 class MemoryObserver : public base::MessageLoop::TaskObserver {
434 public: 432 public:
435 MemoryObserver() {} 433 MemoryObserver() {}
436 ~MemoryObserver() override {} 434 ~MemoryObserver() override {}
437 435
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 } 2037 }
2040 2038
2041 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 2039 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
2042 size_t erased = 2040 size_t erased =
2043 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 2041 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
2044 routing_id_); 2042 routing_id_);
2045 DCHECK_EQ(1u, erased); 2043 DCHECK_EQ(1u, erased);
2046 } 2044 }
2047 2045
2048 } // namespace content 2046 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/android/stream_texture_factory.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698