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

Unified Diff: cc/output/output_surface.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/output/output_surface.h ('k') | cc/output/output_surface_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index b1a2b9a4647121746fcd342a22d5f2be7d9cd24c..630019e61ecbb58f0ec0ca378cca740bb906417e 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/trace_event/trace_event.h"
-#include "cc/output/managed_memory_policy.h"
#include "cc/output/output_surface_client.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gles2_interface.h"
@@ -179,9 +178,6 @@ void OutputSurface::SetUpContext3d() {
context_provider_->SetLostContextCallback(
base::Bind(&OutputSurface::DidLoseOutputSurface,
base::Unretained(this)));
- context_provider_->SetMemoryPolicyChangedCallback(
- base::Bind(&OutputSurface::SetMemoryPolicy,
- base::Unretained(this)));
}
void OutputSurface::ReleaseContextProvider() {
@@ -194,8 +190,6 @@ void OutputSurface::ResetContext3d() {
if (context_provider_.get()) {
context_provider_->SetLostContextCallback(
ContextProvider::LostContextCallback());
- context_provider_->SetMemoryPolicyChangedCallback(
- ContextProvider::MemoryPolicyChangedCallback());
}
if (worker_context_provider_.get()) {
worker_context_provider_->SetLostContextCallback(
@@ -253,14 +247,4 @@ void OutputSurface::OnSwapBuffersComplete() {
client_->DidSwapBuffersComplete();
}
-void OutputSurface::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
- TRACE_EVENT1("cc", "OutputSurface::SetMemoryPolicy",
- "bytes_limit_when_visible", policy.bytes_limit_when_visible);
- // Just ignore the memory manager when it says to set the limit to zero
- // bytes. This will happen when the memory manager thinks that the renderer
- // is not visible (which the renderer knows better).
- if (policy.bytes_limit_when_visible)
- client_->SetMemoryPolicy(policy);
-}
-
} // namespace cc
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698