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

Unified Diff: cc/test/pixel_test.h

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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_test.cc ('k') | cc/test/solid_color_content_layer_client.h » ('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 78b8f4a35ff34b808e9725a1d686c301125fb328..356269939f13682bf3e0c7d38ce3806b7f24fe99 100644
--- a/cc/test/pixel_test.h
+++ b/cc/test/pixel_test.h
@@ -89,9 +89,6 @@ class RendererPixelTest : public PixelTest {
return static_cast<RendererType*>(renderer_.get());
}
- bool UseSkiaGPUBackend() const;
- bool ExpandedViewport() const;
-
protected:
void SetUp() override;
};
@@ -145,16 +142,6 @@ inline void RendererPixelTest<GLRenderer>::SetUp() {
}
template<>
-inline bool RendererPixelTest<GLRenderer>::UseSkiaGPUBackend() const {
- return false;
-}
-
-template<>
-inline bool RendererPixelTest<GLRenderer>::ExpandedViewport() const {
- return false;
-}
-
-template<>
inline void RendererPixelTest<GLRendererWithExpandedViewport>::SetUp() {
SetUpGLRenderer(false, false);
ForceExpandedViewport(gfx::Size(50, 50));
@@ -162,68 +149,22 @@ inline void RendererPixelTest<GLRendererWithExpandedViewport>::SetUp() {
}
template <>
-inline bool
-RendererPixelTest<GLRendererWithExpandedViewport>::UseSkiaGPUBackend() const {
- return false;
-}
-
-template <>
-inline bool
-RendererPixelTest<GLRendererWithExpandedViewport>::ExpandedViewport() const {
- return true;
-}
-
-template <>
inline void RendererPixelTest<GLRendererWithFlippedSurface>::SetUp() {
SetUpGLRenderer(false, true);
}
template <>
-inline bool RendererPixelTest<GLRendererWithFlippedSurface>::UseSkiaGPUBackend()
- const {
- return false;
-}
-
-template <>
-inline bool RendererPixelTest<GLRendererWithFlippedSurface>::ExpandedViewport()
- const {
- return true;
-}
-
-template <>
inline void RendererPixelTest<SoftwareRenderer>::SetUp() {
SetUpSoftwareRenderer();
}
template<>
-inline bool RendererPixelTest<SoftwareRenderer>::UseSkiaGPUBackend() const {
- return false;
-}
-
-template <>
-inline bool RendererPixelTest<SoftwareRenderer>::ExpandedViewport() const {
- return false;
-}
-
-template<>
inline void RendererPixelTest<SoftwareRendererWithExpandedViewport>::SetUp() {
SetUpSoftwareRenderer();
ForceExpandedViewport(gfx::Size(50, 50));
ForceViewportOffset(gfx::Vector2d(10, 20));
}
-template <>
-inline bool RendererPixelTest<
- SoftwareRendererWithExpandedViewport>::UseSkiaGPUBackend() const {
- return false;
-}
-
-template <>
-inline bool RendererPixelTest<
- SoftwareRendererWithExpandedViewport>::ExpandedViewport() const {
- return true;
-}
-
typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/solid_color_content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698