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

Unified Diff: content/browser/renderer_host/accelerated_surface_container_linux_cc.cc

Issue 8463018: Use ScopedMakeCurrent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments Created 9 years, 1 month 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 | « no previous file | content/browser/renderer_host/image_transport_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/accelerated_surface_container_linux_cc.cc
diff --git a/content/browser/renderer_host/accelerated_surface_container_linux_cc.cc b/content/browser/renderer_host/accelerated_surface_container_linux_cc.cc
index e683f1200170d040ca580bff32a1f993df63600d..ea3207aea7e5b20148c95279813201663c69f238 100644
--- a/content/browser/renderer_host/accelerated_surface_container_linux_cc.cc
+++ b/content/browser/renderer_host/accelerated_surface_container_linux_cc.cc
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/browser/renderer_host/image_transport_client.h"
#include "ui/gfx/compositor/compositor_cc.h"
+#include "ui/gfx/gl/scoped_make_current.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/transform.h"
@@ -49,7 +50,7 @@ class AcceleratedSurfaceContainerLinuxCC
virtual void Update() OVERRIDE {
ui::SharedResourcesCC* instance = ui::SharedResourcesCC::GetInstance();
DCHECK(instance);
- instance->MakeSharedContextCurrent();
+ scoped_ptr<gfx::ScopedMakeCurrent> bind(instance->GetScopedMakeCurrent());
if (acquired_)
image_transport_client_->Release();
else
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698