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

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

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 std::unique_ptr<cc::SingleReleaseCallback>* release_callback, 538 std::unique_ptr<cc::SingleReleaseCallback>* release_callback,
539 bool use_shared_memory) override; 539 bool use_shared_memory) override;
540 540
541 // RenderFrameObserver 541 // RenderFrameObserver
542 void OnDestruct() override; 542 void OnDestruct() override;
543 543
544 // PluginInstanceThrottler::Observer 544 // PluginInstanceThrottler::Observer
545 void OnThrottleStateChange() override; 545 void OnThrottleStateChange() override;
546 void OnHiddenForPlaceholder(bool hidden) override; 546 void OnHiddenForPlaceholder(bool hidden) override;
547 547
548 void SetLayerTransform(gfx::Transform transform);
wjmaclean 2016/04/13 14:47:19 I would place this function prototype above the on
alessandroa 2016/04/21 15:39:21 Done.
548 private: 549 private:
549 friend class base::RefCounted<PepperPluginInstanceImpl>; 550 friend class base::RefCounted<PepperPluginInstanceImpl>;
550 friend class PpapiPluginInstanceTest; 551 friend class PpapiPluginInstanceTest;
551 friend class PpapiUnittest; 552 friend class PpapiUnittest;
552 553
553 // Delete should be called by the WebPlugin before this destructor. 554 // Delete should be called by the WebPlugin before this destructor.
554 ~PepperPluginInstanceImpl() override; 555 ~PepperPluginInstanceImpl() override;
555 556
556 // Class to record document load notifications and play them back once the 557 // Class to record document load notifications and play them back once the
557 // real document loader becomes available. Used only by external instances. 558 // real document loader becomes available. Used only by external instances.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 scoped_refptr<PluginModule> module_; 705 scoped_refptr<PluginModule> module_;
705 std::unique_ptr<ppapi::PPP_Instance_Combined> instance_interface_; 706 std::unique_ptr<ppapi::PPP_Instance_Combined> instance_interface_;
706 // If this is the NaCl plugin, we create a new module when we switch to the 707 // If this is the NaCl plugin, we create a new module when we switch to the
707 // IPC-based PPAPI proxy. Store the original module and instance interface 708 // IPC-based PPAPI proxy. Store the original module and instance interface
708 // so we can shut down properly. 709 // so we can shut down properly.
709 scoped_refptr<PluginModule> original_module_; 710 scoped_refptr<PluginModule> original_module_;
710 std::unique_ptr<ppapi::PPP_Instance_Combined> original_instance_interface_; 711 std::unique_ptr<ppapi::PPP_Instance_Combined> original_instance_interface_;
711 712
712 PP_Instance pp_instance_; 713 PP_Instance pp_instance_;
713 714
715 //Transform to apply to UV
wjmaclean 2016/04/13 14:47:19 Comments should be proper sentences, so it needs a
alessandroa 2016/04/21 15:39:21 Done.
716 gfx::Transform transform_;
717
714 // NULL until we have been initialized. 718 // NULL until we have been initialized.
715 blink::WebPluginContainer* container_; 719 blink::WebPluginContainer* container_;
716 scoped_refptr<cc::Layer> compositor_layer_; 720 scoped_refptr<cc::Layer> compositor_layer_;
717 scoped_refptr<cc::TextureLayer> texture_layer_; 721 scoped_refptr<cc::TextureLayer> texture_layer_;
718 std::unique_ptr<blink::WebLayer> web_layer_; 722 std::unique_ptr<blink::WebLayer> web_layer_;
719 bool layer_bound_to_fullscreen_; 723 bool layer_bound_to_fullscreen_;
720 bool layer_is_hardware_; 724 bool layer_is_hardware_;
721 725
722 // Plugin URL. 726 // Plugin URL.
723 const GURL plugin_url_; 727 const GURL plugin_url_;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 // view change events. 939 // view change events.
936 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 940 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
937 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 941 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
938 942
939 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 943 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
940 }; 944 };
941 945
942 } // namespace content 946 } // namespace content
943 947
944 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 948 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698