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

Side by Side Diff: cc/quads/draw_quad.cc

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/quads/draw_quad.h" 5 #include "cc/quads/draw_quad.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "cc/quads/checkerboard_draw_quad.h" 8 #include "cc/quads/checkerboard_draw_quad.h"
9 #include "cc/quads/debug_border_draw_quad.h" 9 #include "cc/quads/debug_border_draw_quad.h"
10 #include "cc/quads/io_surface_draw_quad.h" 10 #include "cc/quads/io_surface_draw_quad.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 case SOLID_COLOR: 72 case SOLID_COLOR:
73 copy_quad.reset(TypedCopy<SolidColorDrawQuad>(this)); 73 copy_quad.reset(TypedCopy<SolidColorDrawQuad>(this));
74 break; 74 break;
75 case TILED_CONTENT: 75 case TILED_CONTENT:
76 copy_quad.reset(TypedCopy<TileDrawQuad>(this)); 76 copy_quad.reset(TypedCopy<TileDrawQuad>(this));
77 break; 77 break;
78 case STREAM_VIDEO_CONTENT: 78 case STREAM_VIDEO_CONTENT:
79 copy_quad.reset(TypedCopy<StreamVideoDrawQuad>(this)); 79 copy_quad.reset(TypedCopy<StreamVideoDrawQuad>(this));
80 break; 80 break;
81 case YUV_VIDEO_CONTENT: 81 case YUV_VIDEO_CONTENT:
82 case YUVA_VIDEO_CONTENT:
82 copy_quad.reset(TypedCopy<YUVVideoDrawQuad>(this)); 83 copy_quad.reset(TypedCopy<YUVVideoDrawQuad>(this));
83 break; 84 break;
84 case RENDER_PASS: // RenderPass quads have their own copy() method. 85 case RENDER_PASS: // RenderPass quads have their own copy() method.
85 case INVALID: 86 case INVALID:
86 LOG(FATAL) << "Invalid DrawQuad material " << material; 87 LOG(FATAL) << "Invalid DrawQuad material " << material;
87 break; 88 break;
88 } 89 }
89 copy_quad->shared_quad_state = copied_shared_quad_state; 90 copy_quad->shared_quad_state = copied_shared_quad_state;
90 return copy_quad.Pass(); 91 return copy_quad.Pass();
91 } 92 }
92 93
93 } // namespace cc 94 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698