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

Unified Diff: cc/test/surface_aggregator_test_helpers.cc

Issue 1422783002: cc: Move surfaces hittesting test helpers out to a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN DEPS I hope 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/surface_aggregator_test_helpers.h ('k') | cc/test/surface_hittest_test_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/surface_aggregator_test_helpers.cc
diff --git a/cc/surfaces/surface_aggregator_test_helpers.cc b/cc/test/surface_aggregator_test_helpers.cc
similarity index 85%
rename from cc/surfaces/surface_aggregator_test_helpers.cc
rename to cc/test/surface_aggregator_test_helpers.cc
index 45b57d0ffe78fcd5bcab088ee136581d072a2fe3..16a4b5bab306e98735bfff40f79402402e78d6c2 100644
--- a/cc/surfaces/surface_aggregator_test_helpers.cc
+++ b/cc/test/surface_aggregator_test_helpers.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "cc/surfaces/surface_aggregator_test_helpers.h"
+#include "cc/test/surface_aggregator_test_helpers.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
@@ -41,33 +41,19 @@ void AddSurfaceQuad(RenderPass* pass,
pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
gfx::Rect quad_rect = gfx::Rect(surface_size);
surface_quad->SetNew(pass->shared_quad_state_list.back(),
- gfx::Rect(surface_size),
- gfx::Rect(surface_size),
+ gfx::Rect(surface_size), gfx::Rect(surface_size),
surface_id);
}
void AddRenderPassQuad(RenderPass* pass, RenderPassId render_pass_id) {
gfx::Rect output_rect = gfx::Rect(0, 0, 5, 5);
SharedQuadState* shared_state = pass->CreateAndAppendSharedQuadState();
- shared_state->SetAll(gfx::Transform(),
- output_rect.size(),
- output_rect,
- output_rect,
- false,
- 1,
- SkXfermode::kSrcOver_Mode,
- 0);
+ shared_state->SetAll(gfx::Transform(), output_rect.size(), output_rect,
+ output_rect, false, 1, SkXfermode::kSrcOver_Mode, 0);
RenderPassDrawQuad* quad =
pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>();
- quad->SetNew(shared_state,
- output_rect,
- output_rect,
- render_pass_id,
- 0,
- gfx::Vector2dF(),
- gfx::Size(),
- FilterOperations(),
- gfx::Vector2dF(),
- FilterOperations());
+ quad->SetNew(shared_state, output_rect, output_rect, render_pass_id, 0,
+ gfx::Vector2dF(), gfx::Size(), FilterOperations(),
+ gfx::Vector2dF(), FilterOperations());
}
void AddQuadInPass(RenderPass* pass, Quad desc) {
« no previous file with comments | « cc/test/surface_aggregator_test_helpers.h ('k') | cc/test/surface_hittest_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698