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

Unified Diff: cc/test/pixel_test.h

Issue 2392183003: cc: Remove SurfaceSize from OutputSurface. (Closed)
Patch Set: nosurfacesize: ozonethinger Created 4 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/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test.h
diff --git a/cc/test/pixel_test.h b/cc/test/pixel_test.h
index 1da5faba5e10743adbe37a8f67c825ebbeb8e01c..1d86f92ff2e888ee66a94f2363d8c8bbb0ebef15 100644
--- a/cc/test/pixel_test.h
+++ b/cc/test/pixel_test.h
@@ -63,15 +63,10 @@ class PixelTest : public testing::Test {
std::unique_ptr<DirectRenderer> renderer_;
SoftwareRenderer* software_renderer_ = nullptr;
std::unique_ptr<SkBitmap> result_bitmap_;
- gfx::Vector2d external_device_viewport_offset_;
- gfx::Rect external_device_clip_rect_;
void SetUpGLRenderer(bool use_skia_gpu_backend, bool flipped_output_surface);
void SetUpSoftwareRenderer();
- void ForceExpandedViewport(const gfx::Size& surface_expansion);
- void ForceViewportOffset(const gfx::Vector2d& viewport_offset);
- void ForceDeviceClip(const gfx::Rect& clip);
void EnableExternalStencilTest();
private:
@@ -141,8 +136,6 @@ inline void RendererPixelTest<GLRenderer>::SetUp() {
template<>
inline void RendererPixelTest<GLRendererWithExpandedViewport>::SetUp() {
SetUpGLRenderer(false, false);
- ForceExpandedViewport(gfx::Size(50, 50));
- ForceViewportOffset(gfx::Vector2d(10, 20));
}
template <>
@@ -158,8 +151,6 @@ inline void RendererPixelTest<SoftwareRenderer>::SetUp() {
template<>
inline void RendererPixelTest<SoftwareRendererWithExpandedViewport>::SetUp() {
SetUpSoftwareRenderer();
- ForceExpandedViewport(gfx::Size(50, 50));
- ForceViewportOffset(gfx::Vector2d(10, 20));
}
typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
« no previous file with comments | « cc/test/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698