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

Side by Side Diff: trunk/src/content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 342323006: Revert 278728 "[PPAPI] Add browser tests for compositor API" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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) 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_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); 628 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format);
629 bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas); 629 bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas);
630 630
631 // Updates the layer for compositing. This creates a layer and attaches to the 631 // Updates the layer for compositing. This creates a layer and attaches to the
632 // container if: 632 // container if:
633 // - we have a bound Graphics3D and the Graphics3D has a texture, OR 633 // - we have a bound Graphics3D and the Graphics3D has a texture, OR
634 // we have a bound Graphics2D and are using software compositing 634 // we have a bound Graphics2D and are using software compositing
635 // - we are not in Flash full-screen mode (or transitioning to it) 635 // - we are not in Flash full-screen mode (or transitioning to it)
636 // Otherwise it destroys the layer. 636 // Otherwise it destroys the layer.
637 // It does either operation lazily. 637 // It does either operation lazily.
638 // device_changed: true if the bound device has been changed, and 638 void UpdateLayer();
639 // UpdateLayer() will be forced to recreate the layer and attaches to the
640 // container.
641 void UpdateLayer(bool device_changed);
642 639
643 // Internal helper function for PrintPage(). 640 // Internal helper function for PrintPage().
644 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, 641 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges,
645 int num_ranges, 642 int num_ranges,
646 blink::WebCanvas* canvas); 643 blink::WebCanvas* canvas);
647 644
648 void DoSetCursor(blink::WebCursorInfo* cursor); 645 void DoSetCursor(blink::WebCursorInfo* cursor);
649 646
650 // Internal helper functions for HandleCompositionXXX(). 647 // Internal helper functions for HandleCompositionXXX().
651 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, 648 bool SendCompositionEventToPlugin(PP_InputEvent_Type type,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 904 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
908 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 905 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
909 906
910 friend class PpapiPluginInstanceTest; 907 friend class PpapiPluginInstanceTest;
911 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 908 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
912 }; 909 };
913 910
914 } // namespace content 911 } // namespace content
915 912
916 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 913 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698