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

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

Issue 1586883002: Converted Ppapi post swap buffer sync point to use sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some .get() booleans Created 4 years, 11 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
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); 638 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format);
639 bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas); 639 bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas);
640 640
641 // Updates the layer for compositing. This creates a layer and attaches to the 641 // Updates the layer for compositing. This creates a layer and attaches to the
642 // container if: 642 // container if:
643 // - we have a bound Graphics3D and the Graphics3D has a texture, OR 643 // - we have a bound Graphics3D and the Graphics3D has a texture, OR
644 // we have a bound Graphics2D and are using software compositing 644 // we have a bound Graphics2D and are using software compositing
645 // - we are not in Flash full-screen mode (or transitioning to it) 645 // - we are not in Flash full-screen mode (or transitioning to it)
646 // Otherwise it destroys the layer. 646 // Otherwise it destroys the layer.
647 // It does either operation lazily. 647 // It does either operation lazily.
648 // device_changed: true if the bound device has been changed, and 648 // force_creation: Force UpdateLayer() to recreate the layer and attaches
649 // UpdateLayer() will be forced to recreate the layer and attaches to the 649 // to the container. Set to true if the bound device has been changed.
650 // container. 650 void UpdateLayer(bool force_creation);
651 void UpdateLayer(bool device_changed);
652 651
653 // Internal helper function for PrintPage(). 652 // Internal helper function for PrintPage().
654 void PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, 653 void PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges,
655 int num_ranges, 654 int num_ranges,
656 blink::WebCanvas* canvas); 655 blink::WebCanvas* canvas);
657 656
658 void DoSetCursor(blink::WebCursorInfo* cursor); 657 void DoSetCursor(blink::WebCursorInfo* cursor);
659 658
660 // Internal helper functions for HandleCompositionXXX(). 659 // Internal helper functions for HandleCompositionXXX().
661 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, 660 bool SendCompositionEventToPlugin(PP_InputEvent_Type type,
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 // view change events. 929 // view change events.
931 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 930 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
932 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 931 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
933 932
934 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 933 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
935 }; 934 };
936 935
937 } // namespace content 936 } // namespace content
938 937
939 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 938 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698