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

Unified Diff: cc/test/fake_output_surface.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 | « cc/test/fake_output_surface.h ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index f1b59b4ee9a75d28b27833236c98cbff703a55ac..23b2eda51bef30402221bf57968a70a4e7f572f5 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -18,47 +18,27 @@ FakeOutputSurface::FakeOutputSurface(
scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> worker_context_provider,
bool delegated_rendering)
- : OutputSurface(context_provider, worker_context_provider),
- client_(NULL),
- num_sent_frames_(0),
- has_external_stencil_test_(false),
- suspended_for_recycle_(false),
- framebuffer_(0),
- overlay_candidate_validator_(nullptr) {
- capabilities_.delegated_rendering = delegated_rendering;
-}
-
-FakeOutputSurface::FakeOutputSurface(
- scoped_refptr<ContextProvider> context_provider,
- bool delegated_rendering)
- : OutputSurface(context_provider),
- client_(NULL),
- num_sent_frames_(0),
- has_external_stencil_test_(false),
- suspended_for_recycle_(false),
- framebuffer_(0),
- overlay_candidate_validator_(nullptr) {
- capabilities_.delegated_rendering = delegated_rendering;
-}
+ : FakeOutputSurface(std::move(context_provider),
+ std::move(worker_context_provider),
+ nullptr,
+ delegated_rendering) {}
FakeOutputSurface::FakeOutputSurface(
std::unique_ptr<SoftwareOutputDevice> software_device,
bool delegated_rendering)
- : OutputSurface(std::move(software_device)),
- client_(NULL),
- num_sent_frames_(0),
- has_external_stencil_test_(false),
- suspended_for_recycle_(false),
- framebuffer_(0),
- overlay_candidate_validator_(nullptr) {
- capabilities_.delegated_rendering = delegated_rendering;
-}
+ : FakeOutputSurface(nullptr,
+ nullptr,
+ std::move(software_device),
+ delegated_rendering) {}
FakeOutputSurface::FakeOutputSurface(
scoped_refptr<ContextProvider> context_provider,
+ scoped_refptr<ContextProvider> worker_context_provider,
std::unique_ptr<SoftwareOutputDevice> software_device,
bool delegated_rendering)
- : OutputSurface(context_provider, std::move(software_device)),
+ : OutputSurface(std::move(context_provider),
+ std::move(worker_context_provider),
+ std::move(software_device)),
client_(NULL),
num_sent_frames_(0),
has_external_stencil_test_(false),
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698