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/common/gpu/client/gl_helper.cc

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: . Created 5 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
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/common/gpu/client/gl_helper.h" 5 #include "content/common/gpu/client/gl_helper.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 void GLHelper::InitCopyTextToImpl() { 899 void GLHelper::InitCopyTextToImpl() {
900 // Lazily initialize |copy_texture_to_impl_| 900 // Lazily initialize |copy_texture_to_impl_|
901 if (!copy_texture_to_impl_) 901 if (!copy_texture_to_impl_)
902 copy_texture_to_impl_.reset( 902 copy_texture_to_impl_.reset(
903 new CopyTextureToImpl(gl_, context_support_, this)); 903 new CopyTextureToImpl(gl_, context_support_, this));
904 } 904 }
905 905
906 void GLHelper::InitScalerImpl() { 906 void GLHelper::InitScalerImpl() {
907 // Lazily initialize |scaler_impl_| 907 // Lazily initialize |scaler_impl_|
908 if (!scaler_impl_) 908 if (!scaler_impl_)
909 scaler_impl_.reset(new GLHelperScaling(gl_, this)); 909 scaler_impl_.reset(new GLHelperScaling(gl_, context_support_, this));
910 } 910 }
911 911
912 GLint GLHelper::MaxDrawBuffers() { 912 GLint GLHelper::MaxDrawBuffers() {
913 InitCopyTextToImpl(); 913 InitCopyTextToImpl();
914 return copy_texture_to_impl_->MaxDrawBuffers(); 914 return copy_texture_to_impl_->MaxDrawBuffers();
915 } 915 }
916 916
917 void GLHelper::CopySubBufferDamage(GLuint texture, 917 void GLHelper::CopySubBufferDamage(GLuint texture,
918 GLuint previous_texture, 918 GLuint previous_texture,
919 const SkRegion& new_damage, 919 const SkRegion& new_damage,
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 InitCopyTextToImpl(); 1376 InitCopyTextToImpl();
1377 return copy_texture_to_impl_->CreateReadbackPipelineYUV(quality, 1377 return copy_texture_to_impl_->CreateReadbackPipelineYUV(quality,
1378 src_size, 1378 src_size,
1379 src_subrect, 1379 src_subrect,
1380 dst_size, 1380 dst_size,
1381 flip_vertically, 1381 flip_vertically,
1382 use_mrt); 1382 use_mrt);
1383 } 1383 }
1384 1384
1385 } // namespace content 1385 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698