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

Unified Diff: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc

Issue 2030483002: Allow premultiply_alpha + unpremultiply_alpha in CopyTextureCHROMIUMResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
index 30732b8ea0996c2168d104e26f857b41d793d814..f49592307623204612545a1cff539ad38791715b 100644
--- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
+++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
@@ -37,9 +37,6 @@ enum FragmentShaderId {
FragmentShaderId GetFragmentShaderId(bool premultiply_alpha,
bool unpremultiply_alpha,
GLenum target) {
- // Only one alpha mode at a time makes sense.
- DCHECK(!premultiply_alpha || !unpremultiply_alpha);
-
enum {
SAMPLER_2D,
SAMPLER_RECTANGLE_ARB,
@@ -136,9 +133,6 @@ std::string GetVertexShaderSource() {
std::string GetFragmentShaderSource(bool premultiply_alpha,
bool unpremultiply_alpha,
GLenum target) {
- // Only one alpha mode at a time makes sense.
- DCHECK(!premultiply_alpha || !unpremultiply_alpha);
-
std::string source;
// Preamble for core and compatibility mode.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698