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

Unified Diff: ui/gl/gl_surface.cc

Issue 13140006: gpu: Fix Vivante's "hisilicon" GPUs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add FBO restore Created 7 years, 8 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 | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 0feeb34ddebb0711479c12807dada960d208d39f..fc271a263293ad3041687fef158b5d3a059a831d 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -84,6 +84,11 @@ bool GLSurface::Resize(const gfx::Size& size) {
return false;
}
+bool GLSurface::Recreate() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
bool GLSurface::DeferDraws() {
return false;
}
@@ -145,6 +150,13 @@ VSyncProvider* GLSurface::GetVSyncProvider() {
return NULL;
}
+bool GLSurface::RecreateOnMakeCurrent() {
+ return false;
+}
+
+void GLSurface::SetRecreateOnMakeCurrent(bool recreate) {
+}
+
GLSurface* GLSurface::GetCurrent() {
return current_surface_.Pointer()->Get();
}
@@ -185,6 +197,10 @@ bool GLSurfaceAdapter::Resize(const gfx::Size& size) {
return surface_->Resize(size);
}
+bool GLSurfaceAdapter::Recreate() {
+ return surface_->Recreate();
+}
+
bool GLSurfaceAdapter::DeferDraws() {
return surface_->DeferDraws();
}
@@ -249,6 +265,14 @@ VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() {
return surface_->GetVSyncProvider();
}
+bool GLSurfaceAdapter::RecreateOnMakeCurrent() {
+ return surface_->RecreateOnMakeCurrent();
+}
+
+void GLSurfaceAdapter::SetRecreateOnMakeCurrent(bool recreate) {
+ surface_->SetRecreateOnMakeCurrent(recreate);
+}
+
GLSurfaceAdapter::~GLSurfaceAdapter() {}
} // namespace gfx
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698