OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Clears the shared memory section and canvases used for windowless plugins. | 143 // Clears the shared memory section and canvases used for windowless plugins. |
144 void ResetWindowlessBitmaps(); | 144 void ResetWindowlessBitmaps(); |
145 | 145 |
146 // Creates a shared memory section and canvas. | 146 // Creates a shared memory section and canvas. |
147 bool CreateBitmap(scoped_ptr<base::SharedMemory>* memory, | 147 bool CreateBitmap(scoped_ptr<base::SharedMemory>* memory, |
148 scoped_ptr<gfx::PlatformCanvasWin>* canvas); | 148 scoped_ptr<gfx::PlatformCanvasWin>* canvas); |
149 | 149 |
150 RenderView* render_view_; | 150 RenderView* render_view_; |
151 WebPlugin* plugin_; | 151 WebPlugin* plugin_; |
152 bool windowless_; | 152 bool windowless_; |
153 bool first_paint_; | |
154 scoped_refptr<PluginChannelHost> channel_host_; | 153 scoped_refptr<PluginChannelHost> channel_host_; |
155 std::string mime_type_; | 154 std::string mime_type_; |
156 std::string clsid_; | 155 std::string clsid_; |
157 int instance_id_; | 156 int instance_id_; |
158 std::wstring plugin_path_; | 157 std::wstring plugin_path_; |
159 | 158 |
160 gfx::Rect plugin_rect_; | 159 gfx::Rect plugin_rect_; |
161 gfx::Rect deferred_clip_rect_; | 160 gfx::Rect deferred_clip_rect_; |
162 std::vector<gfx::Rect> deferred_cutout_rects_; | 161 std::vector<gfx::Rect> deferred_cutout_rects_; |
163 bool send_deferred_update_geometry_; | 162 bool send_deferred_update_geometry_; |
(...skipping 17 matching lines...) Expand all Loading... |
181 // plugin paints into the transport store, and we copy that to our backing | 180 // plugin paints into the transport store, and we copy that to our backing |
182 // store when we get an invalidate from it. The background bitmap is used | 181 // store when we get an invalidate from it. The background bitmap is used |
183 // for transparent plugins, as they need the backgroud data during painting. | 182 // for transparent plugins, as they need the backgroud data during painting. |
184 bool transparent_; | 183 bool transparent_; |
185 scoped_ptr<base::SharedMemory> backing_store_; | 184 scoped_ptr<base::SharedMemory> backing_store_; |
186 scoped_ptr<gfx::PlatformCanvasWin> backing_store_canvas_; | 185 scoped_ptr<gfx::PlatformCanvasWin> backing_store_canvas_; |
187 scoped_ptr<base::SharedMemory> transport_store_; | 186 scoped_ptr<base::SharedMemory> transport_store_; |
188 scoped_ptr<gfx::PlatformCanvasWin> transport_store_canvas_; | 187 scoped_ptr<gfx::PlatformCanvasWin> transport_store_canvas_; |
189 scoped_ptr<base::SharedMemory> background_store_; | 188 scoped_ptr<base::SharedMemory> background_store_; |
190 scoped_ptr<gfx::PlatformCanvasWin> background_store_canvas_; | 189 scoped_ptr<gfx::PlatformCanvasWin> background_store_canvas_; |
| 190 // This lets us know which portion of the backing store has been painted into. |
| 191 gfx::Rect backing_store_painted_; |
191 | 192 |
192 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); | 193 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); |
193 }; | 194 }; |
194 | 195 |
195 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 196 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
196 | 197 |
OLD | NEW |