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

Unified Diff: cc/test/fake_output_surface.cc

Issue 1435133004: cc: Clean up max frames/swaps pending usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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/trees/layer_tree_host_impl.h » ('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 e30806ec21d353103f3148743876c768022f48df..4855f3077c5b6b2932a2412a7b62e8d9953ab48f 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -25,10 +25,7 @@ FakeOutputSurface::FakeOutputSurface(
suspended_for_recycle_(false),
framebuffer_(0),
overlay_candidate_validator_(nullptr) {
- if (delegated_rendering) {
- capabilities_.delegated_rendering = true;
- capabilities_.max_frames_pending = 1;
- }
+ capabilities_.delegated_rendering = delegated_rendering;
}
FakeOutputSurface::FakeOutputSurface(
@@ -41,10 +38,7 @@ FakeOutputSurface::FakeOutputSurface(
suspended_for_recycle_(false),
framebuffer_(0),
overlay_candidate_validator_(nullptr) {
- if (delegated_rendering) {
- capabilities_.delegated_rendering = true;
- capabilities_.max_frames_pending = 1;
- }
+ capabilities_.delegated_rendering = delegated_rendering;
}
FakeOutputSurface::FakeOutputSurface(
@@ -57,10 +51,7 @@ FakeOutputSurface::FakeOutputSurface(
suspended_for_recycle_(false),
framebuffer_(0),
overlay_candidate_validator_(nullptr) {
- if (delegated_rendering) {
- capabilities_.delegated_rendering = true;
- capabilities_.max_frames_pending = 1;
- }
+ capabilities_.delegated_rendering = delegated_rendering;
}
FakeOutputSurface::FakeOutputSurface(
@@ -74,10 +65,7 @@ FakeOutputSurface::FakeOutputSurface(
suspended_for_recycle_(false),
framebuffer_(0),
overlay_candidate_validator_(nullptr) {
- if (delegated_rendering) {
- capabilities_.delegated_rendering = true;
- capabilities_.max_frames_pending = 1;
- }
+ capabilities_.delegated_rendering = delegated_rendering;
}
FakeOutputSurface::~FakeOutputSurface() {}
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698