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

Side by Side Diff: cc/test/render_pass_test_common.cc

Issue 92703003: Support videos with JPEG color range in GPU YUV convert path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yuv_v2
Patch Set: jpeg_color_range->has_jpeg_color_range Created 7 years 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 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/test/render_pass_test_common.h" 5 #include "cc/test/render_pass_test_common.h"
6 6
7 #include "cc/quads/checkerboard_draw_quad.h" 7 #include "cc/quads/checkerboard_draw_quad.h"
8 #include "cc/quads/debug_border_draw_quad.h" 8 #include "cc/quads/debug_border_draw_quad.h"
9 #include "cc/quads/io_surface_draw_quad.h" 9 #include "cc/quads/io_surface_draw_quad.h"
10 #include "cc/quads/render_pass_draw_quad.h" 10 #include "cc/quads/render_pass_draw_quad.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 scoped_ptr<cc::YUVVideoDrawQuad> yuv_quad = 236 scoped_ptr<cc::YUVVideoDrawQuad> yuv_quad =
237 cc::YUVVideoDrawQuad::Create(); 237 cc::YUVVideoDrawQuad::Create();
238 yuv_quad->SetNew(shared_state2.get(), 238 yuv_quad->SetNew(shared_state2.get(),
239 rect, 239 rect,
240 opaque_rect, 240 opaque_rect,
241 gfx::Size(100, 100), 241 gfx::Size(100, 100),
242 plane_resources[0], 242 plane_resources[0],
243 plane_resources[1], 243 plane_resources[1],
244 plane_resources[2], 244 plane_resources[2],
245 plane_resources[3]); 245 plane_resources[3],
246 false);
danakj 2013/12/03 21:35:34 use a temp variable to give this boolean literal a
246 AppendQuad(yuv_quad.PassAs<DrawQuad>()); 247 AppendQuad(yuv_quad.PassAs<DrawQuad>());
247 248
248 AppendSharedQuadState(shared_state.Pass()); 249 AppendSharedQuadState(shared_state.Pass());
249 AppendSharedQuadState(transformed_state.Pass()); 250 AppendSharedQuadState(transformed_state.Pass());
250 AppendSharedQuadState(shared_state2.Pass()); 251 AppendSharedQuadState(shared_state2.Pass());
251 } 252 }
252 253
253 } // namespace cc 254 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698