#include "cc/test/pixel_test_utils.h"
#include "cc/test/test_in_process_context_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gl/gl_implementation.h"
namespace cc {
}
void PixelTest::SetUpGLRenderer(bool use_skia_gpu_backend) {
- CHECK(gfx::InitializeStaticGLBindings(gfx::kGLImplementationOSMesaGL));
-
output_surface_.reset(
new PixelTestOutputSurface(new TestInProcessContextProvider));
output_surface_->BindToClient(output_surface_client_.get());
0).PassAs<DirectRenderer>();
}
-void PixelTest::ForceExpandedViewport(gfx::Size surface_expansion) {
+void PixelTest::ForceExpandedViewport(const gfx::Size& surface_expansion) {
static_cast<PixelTestOutputSurface*>(output_surface_.get())
->set_surface_expansion_size(surface_expansion);
SoftwareOutputDevice* device = output_surface_->software_device();
}
}
-void PixelTest::ForceViewportOffset(gfx::Vector2d viewport_offset) {
+void PixelTest::ForceViewportOffset(const gfx::Vector2d& viewport_offset) {
external_device_viewport_offset_ = viewport_offset;
}