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/compositing_iosurface_context_mac.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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: content/browser/renderer_host/compositing_iosurface_context_mac.mm
diff --git a/content/browser/renderer_host/compositing_iosurface_context_mac.mm b/content/browser/renderer_host/compositing_iosurface_context_mac.mm
index b7909cbed277ba520d1318184f2ee96b5f1bdf02..6394fe370cfc7652b34b0cde892a089ef51c1a87 100644
--- a/content/browser/renderer_host/compositing_iosurface_context_mac.mm
+++ b/content/browser/renderer_host/compositing_iosurface_context_mac.mm
@@ -37,7 +37,7 @@ CompositingIOSurfaceContext::Get(int window_number) {
attributes.push_back(NSOpenGLPFAAllowOfflineRenderers);
attributes.push_back(0);
- scoped_nsobject<NSOpenGLPixelFormat> glPixelFormat(
+ base::scoped_nsobject<NSOpenGLPixelFormat> glPixelFormat(
[[NSOpenGLPixelFormat alloc] initWithAttributes:&attributes.front()]);
if (!glPixelFormat) {
LOG(ERROR) << "NSOpenGLPixelFormat initWithAttributes failed";
@@ -49,9 +49,9 @@ CompositingIOSurfaceContext::Get(int window_number) {
NSOpenGLContext* share_context = nil;
if (!window_map()->empty())
share_context = window_map()->begin()->second->nsgl_context();
- scoped_nsobject<NSOpenGLContext> nsgl_context(
- [[NSOpenGLContext alloc] initWithFormat:glPixelFormat
- shareContext:share_context]);
+ base::scoped_nsobject<NSOpenGLContext> nsgl_context(
+ [[NSOpenGLContext alloc] initWithFormat:glPixelFormat
+ shareContext:share_context]);
if (!nsgl_context) {
LOG(ERROR) << "NSOpenGLContext initWithFormat failed";
return NULL;

Powered by Google App Engine
This is Rietveld 408576698