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

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

Issue 324983005: [PPAPI] Add browser tests for compositor API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor_api_impl_new
Patch Set: Disable the test on MACOSX 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
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 void UpdateLayer(); 638 // device_changed: true if the bound device has been changed, and
639 // UpdateLayer() will be forced to recreate the layer and attaches to the
640 // container.
641 void UpdateLayer(bool device_changed);
639 642
640 // Internal helper function for PrintPage(). 643 // Internal helper function for PrintPage().
641 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, 644 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges,
642 int num_ranges, 645 int num_ranges,
643 blink::WebCanvas* canvas); 646 blink::WebCanvas* canvas);
644 647
645 void DoSetCursor(blink::WebCursorInfo* cursor); 648 void DoSetCursor(blink::WebCursorInfo* cursor);
646 649
647 // Internal helper functions for HandleCompositionXXX(). 650 // Internal helper functions for HandleCompositionXXX().
648 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, 651 bool SendCompositionEventToPlugin(PP_InputEvent_Type type,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 907 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
905 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 908 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
906 909
907 friend class PpapiPluginInstanceTest; 910 friend class PpapiPluginInstanceTest;
908 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 911 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
909 }; 912 };
910 913
911 } // namespace content 914 } // namespace content
912 915
913 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 916 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_compositor_host.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698