summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_output_surface.cc
diff options
context:
space:
mode:
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-13 03:50:20 +0000
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-13 03:50:20 +0000
commit50af3c2667e37abedccfb137c08f7875c3989013 (patch)
tree83c7380ee2d8bbd1c49f85fac69ca42844c55f48 /cc/test/fake_output_surface.cc
parentb1960cd7669a83698e84212acfaac10d949b8cee (diff)
downloadchromium_src-50af3c2667e37abedccfb137c08f7875c3989013.zip
chromium_src-50af3c2667e37abedccfb137c08f7875c3989013.tar.gz
chromium_src-50af3c2667e37abedccfb137c08f7875c3989013.tar.bz2
OutputSurfaceClient::ReleaseGL
For Android WebView, when the webview is detached from the view tree, it is the last chance we have of releasing all GL resources. This is essentially the reverse of DeferredInitialize, synchronously releasing GL resources and reverting back to software mode and zero-budget. BUG=256276 Review URL: https://chromiumcodereview.appspot.com/18279003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.cc')
-rw-r--r--cc/test/fake_output_surface.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index eee4529..195c603 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -93,6 +93,7 @@ bool FakeOutputSurface::ForcedDrawToSoftwareDevice() const {
bool FakeOutputSurface::SetAndInitializeContext3D(
scoped_ptr<WebKit::WebGraphicsContext3D> context3d) {
+ context3d_.reset();
return InitializeAndSetContext3D(context3d.Pass(),
scoped_refptr<ContextProvider>());
}