| OLD | NEW |
| 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_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 virtual bool ForceCompositingModeEnabled(); | 349 virtual bool ForceCompositingModeEnabled(); |
| 350 | 350 |
| 351 // WebGraphicsContext3DSwapBuffersClient implementation. | 351 // WebGraphicsContext3DSwapBuffersClient implementation. |
| 352 | 352 |
| 353 // Called by a GraphicsContext associated with this view when swapbuffers | 353 // Called by a GraphicsContext associated with this view when swapbuffers |
| 354 // is posted, completes or is aborted. | 354 // is posted, completes or is aborted. |
| 355 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; | 355 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; |
| 356 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; | 356 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; |
| 357 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; | 357 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; |
| 358 | 358 |
| 359 void OnSnapshot(const gfx::Rect& src_subrect); |
| 360 |
| 359 // Detects if a suitable opaque plugin covers the given paint bounds with no | 361 // Detects if a suitable opaque plugin covers the given paint bounds with no |
| 360 // compositing necessary. | 362 // compositing necessary. |
| 361 // | 363 // |
| 362 // Returns the plugin instance that's the source of the paint if the paint | 364 // Returns the plugin instance that's the source of the paint if the paint |
| 363 // can be handled by just blitting the plugin bitmap. In this case, the | 365 // can be handled by just blitting the plugin bitmap. In this case, the |
| 364 // location, clipping, and ID of the backing store will be filled into the | 366 // location, clipping, and ID of the backing store will be filled into the |
| 365 // given output parameters. | 367 // given output parameters. |
| 366 // | 368 // |
| 367 // A return value of null means optimized painting can not be used and we | 369 // A return value of null means optimized painting can not be used and we |
| 368 // should continue with the normal painting code path. | 370 // should continue with the normal painting code path. |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 bool is_threaded_compositing_enabled_; | 684 bool is_threaded_compositing_enabled_; |
| 683 | 685 |
| 684 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 686 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 685 | 687 |
| 686 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 688 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 687 }; | 689 }; |
| 688 | 690 |
| 689 } // namespace content | 691 } // namespace content |
| 690 | 692 |
| 691 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 693 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |