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

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

Issue 1131253003: cc: Add support for non-2D texture targets to YUVVideoQuad. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: invert scale Created 5 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 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 "base/bind.h" 7 #include "base/bind.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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 plane_resources[i] = resource_provider->CreateResource( 238 plane_resources[i] = resource_provider->CreateResource(
239 gfx::Size(20, 12), GL_CLAMP_TO_EDGE, 239 gfx::Size(20, 12), GL_CLAMP_TO_EDGE,
240 ResourceProvider::TEXTURE_HINT_IMMUTABLE, 240 ResourceProvider::TEXTURE_HINT_IMMUTABLE,
241 resource_provider->best_texture_format()); 241 resource_provider->best_texture_format());
242 resource_provider->AllocateForTesting(plane_resources[i]); 242 resource_provider->AllocateForTesting(plane_resources[i]);
243 } 243 }
244 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601; 244 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601;
245 YUVVideoDrawQuad* yuv_quad = 245 YUVVideoDrawQuad* yuv_quad =
246 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); 246 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
247 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, 247 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect,
248 gfx::RectF(0, 0, 100, 100), gfx::Size(100, 100), 248 gfx::RectF(0, 0, 100, 100), gfx::RectF(0, 0, 50, 50),
danakj 2015/05/12 16:47:41 float literals should be written with f suffix
reveman 2015/05/12 17:09:36 Done. fyi, this file is not very consistent in th
249 gfx::Size(50, 50), plane_resources[0], plane_resources[1], 249 gfx::Size(100, 100), gfx::Size(50, 50), plane_resources[0],
250 plane_resources[2], plane_resources[3], color_space); 250 plane_resources[1], plane_resources[2], plane_resources[3],
251 color_space);
251 } 252 }
252 253
253 } // namespace cc 254 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698