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

Unified Diff: cc/test/fake_output_surface.cc

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits Created 4 years, 3 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/test_delegating_output_surface.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 1fb7f23bf32cdc5783c6820406b4903f9c1b3749..e6e7563ee78deb2d9688360aa95cc24dd6abed33 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -85,10 +85,6 @@ uint32_t FakeOutputSurface::GetFramebufferCopyTextureFormat() {
bool FakeOutputSurface::BindToClient(OutputSurfaceClient* client) {
if (OutputSurface::BindToClient(client)) {
client_ = client;
- if (memory_policy_to_set_at_bind_) {
- client_->SetMemoryPolicy(*memory_policy_to_set_at_bind_.get());
- memory_policy_to_set_at_bind_ = nullptr;
- }
return true;
} else {
return false;
@@ -113,11 +109,6 @@ OverlayCandidateValidator* FakeOutputSurface::GetOverlayCandidateValidator()
return overlay_candidate_validator_;
}
-void FakeOutputSurface::SetMemoryPolicyToSetAtBind(
- std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind) {
- memory_policy_to_set_at_bind_.swap(memory_policy_to_set_at_bind);
-}
-
void FakeOutputSurface::ReturnResourcesHeldByParent() {
// Check |delegated_frame_data| because we shouldn't reclaim resources
// for the Display which does not swap delegated frames.
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/test_delegating_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698