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

Side by Side Diff: content/renderer/webplugin_delegate_proxy.h

Issue 12487003: Fix painting glitch with text and NPAPI plugins. This was a regression from r167042. The problem wa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix silverlight Created 7 years, 9 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
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Event passed in by the plugin process and is used to decide if messages 293 // Event passed in by the plugin process and is used to decide if messages
294 // need to be pumped in the NPP_HandleEvent sync call. 294 // need to be pumped in the NPP_HandleEvent sync call.
295 scoped_ptr<base::WaitableEvent> modal_loop_pump_messages_event_; 295 scoped_ptr<base::WaitableEvent> modal_loop_pump_messages_event_;
296 296
297 // Bitmap for crashed plugin 297 // Bitmap for crashed plugin
298 SkBitmap* sad_plugin_; 298 SkBitmap* sad_plugin_;
299 299
300 // True if we got an invalidate from the plugin and are waiting for a paint. 300 // True if we got an invalidate from the plugin and are waiting for a paint.
301 bool invalidate_pending_; 301 bool invalidate_pending_;
302 302
303 // If the plugin is transparent or not.
304 bool transparent_;
305
303 // The index in the transport_stores_ array of the current front buffer 306 // The index in the transport_stores_ array of the current front buffer
304 // (i.e., the buffer to display). 307 // (i.e., the buffer to display).
305 int front_buffer_index_; 308 int front_buffer_index_;
306 SharedBitmap transport_stores_[2]; 309 SharedBitmap transport_stores_[2];
307 // This lets us know the total portion of the transport store that has been 310 // This lets us know the total portion of the transport store that has been
308 // painted since the buffers were created. 311 // painted since the buffers were created.
309 gfx::Rect transport_store_painted_; 312 gfx::Rect transport_store_painted_;
310 // This is a bounding box on the portion of the front-buffer that was painted 313 // This is a bounding box on the portion of the front-buffer that was painted
311 // on the last buffer flip and which has not yet been re-painted in the 314 // on the last buffer flip and which has not yet been re-painted in the
312 // back-buffer. 315 // back-buffer.
313 gfx::Rect front_buffer_diff_; 316 gfx::Rect front_buffer_diff_;
314 317
315 // The url of the main frame hosting the plugin. 318 // The url of the main frame hosting the plugin.
316 GURL page_url_; 319 GURL page_url_;
317 320
318 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); 321 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy);
319 }; 322 };
320 323
321 } // namespace content 324 } // namespace content
322 325
323 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 326 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698