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

Side by Side Diff: cc/output/gl_renderer_unittest.cc

Issue 1376883004: Overlays: Remove special casing of primary overlay plane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missed file Created 5 years, 2 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/output/gl_renderer.h" 5 #include "cc/output/gl_renderer.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 overlay_quad->SetNew(shared_state, viewport_rect, viewport_rect, 2217 overlay_quad->SetNew(shared_state, viewport_rect, viewport_rect,
2218 viewport_rect, resource_id, premultiplied_alpha, 2218 viewport_rect, resource_id, premultiplied_alpha,
2219 uv_top_left, uv_bottom_right, SK_ColorTRANSPARENT, 2219 uv_top_left, uv_bottom_right, SK_ColorTRANSPARENT,
2220 vertex_opacity, flipped, nearest_neighbor); 2220 vertex_opacity, flipped, nearest_neighbor);
2221 overlay_quad->set_allow_overlay(true); 2221 overlay_quad->set_allow_overlay(true);
2222 2222
2223 // Verify that overlay_quad actually gets turned into an overlay, and even 2223 // Verify that overlay_quad actually gets turned into an overlay, and even
2224 // though it's not drawn, that its sync point is waited on. 2224 // though it's not drawn, that its sync point is waited on.
2225 EXPECT_CALL(*context, waitSyncPoint(sync_point)).Times(1); 2225 EXPECT_CALL(*context, waitSyncPoint(sync_point)).Times(1);
2226 EXPECT_CALL(overlay_scheduler, 2226 EXPECT_CALL(overlay_scheduler,
2227 Schedule(0, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect,
2228 gfx::RectF(0, 0, 1, 1)))
2229 .Times(1);
2230 EXPECT_CALL(overlay_scheduler,
2227 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect, 2231 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect,
2228 BoundingRect(uv_top_left, uv_bottom_right))).Times(1); 2232 BoundingRect(uv_top_left, uv_bottom_right)))
2233 .Times(1);
2229 2234
2230 renderer.DrawFrame(&render_passes_in_draw_order_, 1.f, viewport_rect, 2235 renderer.DrawFrame(&render_passes_in_draw_order_, 1.f, viewport_rect,
2231 viewport_rect, false); 2236 viewport_rect, false);
2232 } 2237 }
2233 2238
2234 } // namespace 2239 } // namespace
2235 } // namespace cc 2240 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698