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

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

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_thread.h"
12 #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"
13 #include "ui/gfx/gl/gl_context.h" 13 #include "ui/gfx/gl/gl_context.h"
14 #include "ui/gfx/gl/gl_switches.h" 14 #include "ui/gfx/gl/gl_switches.h"
15 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 15 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
16 16
17 @implementation AcceleratedPluginView 17 @implementation AcceleratedPluginView
18 18
19 - (void)drawView { 19 - (void)drawView {
20 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 20 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
21 TRACE_EVENT0("browser", "AcceleratedPluginViewMac::drawView"); 21 TRACE_EVENT0("browser", "AcceleratedPluginViewMac::drawView");
22 22
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 return YES; 254 return YES;
255 } 255 }
256 256
257 - (void)viewDidMoveToSuperview { 257 - (void)viewDidMoveToSuperview {
258 TRACE_EVENT0("browser", "AcceleratedPluginView::viewDidMoveToSuperview"); 258 TRACE_EVENT0("browser", "AcceleratedPluginView::viewDidMoveToSuperview");
259 if (![self superview]) 259 if (![self superview])
260 [self onRenderWidgetHostViewGone]; 260 [self onRenderWidgetHostViewGone];
261 } 261 }
262 @end 262 @end
263 263
OLDNEW
« no previous file with comments | « content/browser/power_save_blocker_win.cc ('k') | content/browser/renderer_host/buffered_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698