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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 12374028: Allow WebExternalTextureLayerClient to work with mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 virtual void DeliverFrame(PP_Instance instance, 453 virtual void DeliverFrame(PP_Instance instance,
454 PP_Resource decrypted_frame, 454 PP_Resource decrypted_frame,
455 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; 455 const PP_DecryptedFrameInfo* frame_info) OVERRIDE;
456 virtual void DeliverSamples(PP_Instance instance, 456 virtual void DeliverSamples(PP_Instance instance,
457 PP_Resource audio_frames, 457 PP_Resource audio_frames,
458 const PP_DecryptedBlockInfo* block_info) OVERRIDE; 458 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
459 459
460 // TextureLayerClient implementation. 460 // TextureLayerClient implementation.
461 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE; 461 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE;
462 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; 462 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE;
463 virtual bool prepareTextureMailbox(cc::TextureMailbox*) OVERRIDE;
463 464
464 // Reset this instance as proxied. Assigns the instance a new module, resets 465 // Reset this instance as proxied. Assigns the instance a new module, resets
465 // cached interfaces to point to the out-of-process proxy and re-sends 466 // cached interfaces to point to the out-of-process proxy and re-sends
466 // DidCreate, DidChangeView, and HandleDocumentLoad (if necessary). 467 // DidCreate, DidChangeView, and HandleDocumentLoad (if necessary).
467 // This should be used only when switching a trusted NaCl in-process instance 468 // This should be used only when switching a trusted NaCl in-process instance
468 // to an untrusted NaCl out-of-process instance. 469 // to an untrusted NaCl out-of-process instance.
469 PP_NaClResult ResetAsProxied(scoped_refptr<PluginModule> module); 470 PP_NaClResult ResetAsProxied(scoped_refptr<PluginModule> module);
470 471
471 // Checks whether this is a valid instance of the given module. After calling 472 // Checks whether this is a valid instance of the given module. After calling
472 // ResetAsProxied above, a NaCl plugin instance's module changes, so external 473 // ResetAsProxied above, a NaCl plugin instance's module changes, so external
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_; 779 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_;
779 780
780 friend class PpapiPluginInstanceTest; 781 friend class PpapiPluginInstanceTest;
781 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 782 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
782 }; 783 };
783 784
784 } // namespace ppapi 785 } // namespace ppapi
785 } // namespace webkit 786 } // namespace webkit
786 787
787 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 788 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698