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

Side by Side Diff: content/browser/renderer_host/accelerated_plugin_view_mac.mm

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "content/browser/renderer_host/accelerated_plugin_view_mac.h" 5 #import "content/browser/renderer_host/accelerated_plugin_view_mac.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 11 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" 13 #import "ui/base/cocoa/underlay_opengl_hosting_window.h"
14 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 14 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
15 #include "ui/gl/gl_context.h" 15 #include "ui/gl/gl_context.h"
16 #include "ui/gl/gl_switches.h" 16 #include "ui/gl/gl_switches.h"
17 17
18 using content::BrowserThread; 18 using content::BrowserThread;
19 using content::RenderWidgetHostViewMac;
19 20
20 @interface AcceleratedPluginView(Private) 21 @interface AcceleratedPluginView(Private)
21 22
22 // Initialize the OpenGL context. 23 // Initialize the OpenGL context.
23 - (void)initOpenGLContext; 24 - (void)initOpenGLContext;
24 25
25 @end // AcceleratedPluginView(Private) 26 @end // AcceleratedPluginView(Private)
26 27
27 @implementation AcceleratedPluginView 28 @implementation AcceleratedPluginView
28 29
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // Draw at beam vsync. 249 // Draw at beam vsync.
249 GLint swapInterval; 250 GLint swapInterval;
250 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpuVsync)) 251 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpuVsync))
251 swapInterval = 0; 252 swapInterval = 0;
252 else 253 else
253 swapInterval = 1; 254 swapInterval = 1;
254 [glContext_ setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; 255 [glContext_ setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
255 } 256 }
256 257
257 @end // @implementation AcceleratedPluginView(Private) 258 @end // @implementation AcceleratedPluginView(Private)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/accelerated_plugin_view_mac.h ('k') | content/browser/renderer_host/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698