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

Unified Diff: cc/output/gl_renderer_unittest.cc

Issue 2002303002: Consolidate OutputSurface constructors into GL vs Vulkan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: outputsurface-constructors: rebase-and-fixcrash Created 4 years, 7 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 | « blimp/client/feature/compositor/blimp_output_surface.cc ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer_unittest.cc
diff --git a/cc/output/gl_renderer_unittest.cc b/cc/output/gl_renderer_unittest.cc
index 04f5762c28fc639ae2a4295060656bffec53def2..fb263acdca0ba68e58b82a635c16c5de21e2cd10 100644
--- a/cc/output/gl_renderer_unittest.cc
+++ b/cc/output/gl_renderer_unittest.cc
@@ -1139,6 +1139,7 @@ class NonReshapableOutputSurface : public FakeOutputSurface {
explicit NonReshapableOutputSurface(
std::unique_ptr<TestWebGraphicsContext3D> context3d)
: FakeOutputSurface(TestContextProvider::Create(std::move(context3d)),
+ nullptr,
false) {
surface_size_ = gfx::Size(500, 500);
}
@@ -1761,9 +1762,11 @@ class OutputSurfaceMockContext : public TestWebGraphicsContext3D {
class MockOutputSurface : public OutputSurface {
public:
MockOutputSurface()
- : OutputSurface(TestContextProvider::Create(
- std::unique_ptr<TestWebGraphicsContext3D>(
- new StrictMock<OutputSurfaceMockContext>))) {
+ : OutputSurface(
+ TestContextProvider::Create(
+ base::MakeUnique<StrictMock<OutputSurfaceMockContext>>()),
+ nullptr,
+ nullptr) {
surface_size_ = gfx::Size(100, 100);
}
virtual ~MockOutputSurface() {}
« no previous file with comments | « blimp/client/feature/compositor/blimp_output_surface.cc ('k') | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698