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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1885463003: Remove WebGraphicsContext3DCommandBufferImpl::IsCommandBufferContextLost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sharelost: moreerror Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 14a536015a416aa9b86cebe1f0b6f2369baef218..783dfad8384e0b773252df5bbeff735023c709db 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1492,7 +1492,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl::GetGpuFactories() {
std::unique_ptr<WebGraphicsContext3DCommandBufferImpl>
RenderThreadImpl::CreateOffscreenContext3d() {
// This is used to create a few different offscreen contexts:
- // - The shared main thread context (offscreen) used by blink for canvas
+ // - The shared main thread context (offscreen) used by blink for canvas.
// - The worker context (offscreen) used for GPU raster and video decoding.
// This is for an offscreen context, so the default framebuffer doesn't need
// alpha, depth, stencil, antialiasing.
@@ -1508,6 +1508,8 @@ RenderThreadImpl::CreateOffscreenContext3d() {
bool automatic_flushes = false;
scoped_refptr<gpu::GpuChannelHost> gpu_channel_host(EstablishGpuChannelSync(
CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE));
+ if (!gpu_channel_host)
+ return nullptr;
return base::WrapUnique(
WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
gpu_channel_host.get(), attributes, gfx::PreferIntegratedGpu,

Powered by Google App Engine
This is Rietveld 408576698