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

Side by Side Diff: chrome/browser/renderer_host/accelerated_plugin_view_mac.h

Issue 6993043: Fix the mac hangup when force-compositing-mode is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_RENDERER_HOST_ACCELERATED_PLUGIN_VIEW_MAC_H 5 #ifndef CHROME_BROWSER_RENDERER_HOST_ACCELERATED_PLUGIN_VIEW_MAC_H
6 #define CHROME_BROWSER_RENDERER_HOST_ACCELERATED_PLUGIN_VIEW_MAC_H 6 #define CHROME_BROWSER_RENDERER_HOST_ACCELERATED_PLUGIN_VIEW_MAC_H
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Rects that should show web content rather than plugin content. 69 // Rects that should show web content rather than plugin content.
70 scoped_nsobject<NSArray> cutoutRects_; 70 scoped_nsobject<NSArray> cutoutRects_;
71 71
72 // -globalFrameDidChange: can be called recursively, this counts how often it 72 // -globalFrameDidChange: can be called recursively, this counts how often it
73 // holds the CGL lock. 73 // holds the CGL lock.
74 int globalFrameDidChangeCGLLockCount_; 74 int globalFrameDidChangeCGLLockCount_;
75 } 75 }
76 76
77 - (id)initWithRenderWidgetHostViewMac:(RenderWidgetHostViewMac*)r 77 - (id)initWithRenderWidgetHostViewMac:(RenderWidgetHostViewMac*)r
78 pluginHandle:(gfx::PluginWindowHandle)pluginHandle; 78 pluginHandle:(gfx::PluginWindowHandle)pluginHandle;
79 - (void)drawView;
80 79
81 // Sets the list of rectangles that should show the web page, rather than the 80 // Sets the list of rectangles that should show the web page, rather than the
82 // accelerated plugin. This is used to simulate the iframe-based trick that web 81 // accelerated plugin. This is used to simulate the iframe-based trick that web
83 // pages have long used to show web content above windowed plugins on Windows 82 // pages have long used to show web content above windowed plugins on Windows
84 // and Linux. 83 // and Linux.
85 - (void)setCutoutRects:(NSArray*)cutout_rects; 84 - (void)setCutoutRects:(NSArray*)cutout_rects;
86 85
87 // Updates the number of swap buffers calls that have been requested. 86 // Updates the number of swap buffers calls that have been requested.
88 // This is currently called with non-zero values only in response to 87 // This is currently called with non-zero values only in response to
89 // updates from the GPU process. For accelerated plugins, all zeros 88 // updates from the GPU process. For accelerated plugins, all zeros
90 // are passed, and the view takes this as a hint that no flow control 89 // are passed, and the view takes this as a hint that no flow control
91 // or acknowledgment of the swap buffers are desired. 90 // or acknowledgment of the swap buffers are desired.
92 - (void)updateSwapBuffersCount:(uint64)count 91 - (void)updateSwapBuffersCount:(uint64)count
93 fromRenderer:(int)rendererId 92 fromRenderer:(int)rendererId
94 routeId:(int32)routeId 93 routeId:(int32)routeId
95 gpuHostId:(int)gpuHostId; 94 gpuHostId:(int)gpuHostId;
96 95
97 // NSViews autorelease subviews when they die. The RWHVMac gets destroyed when 96 // NSViews autorelease subviews when they die. The RWHVMac gets destroyed when
98 // RHWVCocoa gets dealloc'd, which means the AcceleratedPluginView child views 97 // RHWVCocoa gets dealloc'd, which means the AcceleratedPluginView child views
99 // can be around a little longer than the RWHVMac. This is called when the 98 // can be around a little longer than the RWHVMac. This is called when the
100 // RWHVMac is about to be deleted (but it's still valid while this method runs). 99 // RWHVMac is about to be deleted (but it's still valid while this method runs).
101 - (void)onRenderWidgetHostViewGone; 100 - (void)onRenderWidgetHostViewGone;
102 101
103 // This _must_ be atomic, since it's accessed from several threads. 102 // This _must_ be atomic, since it's accessed from several threads.
104 @property NSSize cachedSize; 103 @property NSSize cachedSize;
105 @end 104 @end
106 105
107 #endif // CHROME_BROWSER_RENDERER_HOST_ACCELERATED_PLUGIN_VIEW_MAC_H 106 #endif // CHROME_BROWSER_RENDERER_HOST_ACCELERATED_PLUGIN_VIEW_MAC_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698