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

Unified Diff: cc/output/output_surface.cc

Issue 2329623003: cc: Remove unneeded methods from OutputSurface. (Closed)
Patch Set: superandroid 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/output/output_surface.h ('k') | cc/surfaces/surface_display_output_surface.cc » ('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 a853c64e86c0caece0a30e7e912ef220b29be81a..8746131927d47ed0dea2513f39f925e60a13536f 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -137,32 +137,13 @@ OutputSurface::OutputSurface(
client_thread_checker_.DetachFromThread();
}
-// Forwarded to OutputSurfaceClient
-void OutputSurface::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
- TRACE_EVENT0("cc", "OutputSurface::SetNeedsRedrawRect");
- client_->SetNeedsRedrawRect(damage_rect);
-}
-
-void OutputSurface::ReclaimResources(const ReturnedResourceArray& resources) {
- client_->ReclaimResources(resources);
-}
-
-void OutputSurface::DidLoseOutputSurface() {
- TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface");
- client_->DidLoseOutputSurface();
-}
-
-void OutputSurface::SetExternalStencilTest(bool enabled) {
- external_stencil_test_enabled_ = enabled;
-}
-
OutputSurface::~OutputSurface() {
if (client_)
DetachFromClientInternal();
}
bool OutputSurface::HasExternalStencilTest() const {
- return external_stencil_test_enabled_;
+ return false;
}
void OutputSurface::ApplyExternalStencil() {}
@@ -313,4 +294,9 @@ void OutputSurface::DetachFromClientInternal() {
weak_ptr_factory_.InvalidateWeakPtrs();
}
+void OutputSurface::DidLoseOutputSurface() {
+ TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface");
+ client_->DidLoseOutputSurface();
+}
+
} // namespace cc
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698