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

Unified Diff: android_webview/browser/parent_output_surface.cc

Issue 2352963002: cc: Make most of cc::OutputSurface abstract. (Closed)
Patch Set: outputsurface-cleanup: . 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
Index: android_webview/browser/parent_output_surface.cc
diff --git a/android_webview/browser/parent_output_surface.cc b/android_webview/browser/parent_output_surface.cc
index 4fe64336cf155638c5e89310426b202388bb1d41..7ed5b6c20ae69c874ad2c0ff16323e434bdc8bf1 100644
--- a/android_webview/browser/parent_output_surface.cc
+++ b/android_webview/browser/parent_output_surface.cc
@@ -25,6 +25,16 @@ void ParentOutputSurface::DidLoseOutputSurface() {
LOG(FATAL) << "Render thread context loss";
}
+void ParentOutputSurface::EnsureBackbuffer() {}
+
+void ParentOutputSurface::DiscardBackbuffer() {
+ context_provider()->ContextGL()->DiscardBackbufferCHROMIUM();
+}
+
+void ParentOutputSurface::BindFramebuffer() {
+ context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0);
+}
+
void ParentOutputSurface::Reshape(const gfx::Size& size,
float scale_factor,
const gfx::ColorSpace& color_space,
@@ -65,6 +75,23 @@ uint32_t ParentOutputSurface::GetFramebufferCopyTextureFormat() {
return gl->GetCopyTextureInternalFormat();
}
+cc::OverlayCandidateValidator*
+ParentOutputSurface::GetOverlayCandidateValidator() const {
+ return nullptr;
+}
+
+bool ParentOutputSurface::IsDisplayedAsOverlayPlane() const {
+ return false;
+}
+
+unsigned ParentOutputSurface::GetOverlayTextureId() const {
+ return 0;
+}
+
+bool ParentOutputSurface::SurfaceIsSuspendForRecycle() const {
+ return false;
+}
+
void ParentOutputSurface::SetGLState(const ScopedAppGLStateRestore& gl_state) {
stencil_state_ = gl_state.stencil_state();
}

Powered by Google App Engine
This is Rietveld 408576698