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

Unified Diff: content/renderer/pepper/pepper_compositor_host.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: Remove change in base folder. 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_compositor_host.h
diff --git a/content/renderer/pepper/pepper_compositor_host.h b/content/renderer/pepper/pepper_compositor_host.h
index 6d5a3efaf8335a232135d9b9b17d3a1dc9d37884..f41f9dbaad5c74afc4fad1f3279c921e0ba98a59 100644
--- a/content/renderer/pepper/pepper_compositor_host.h
+++ b/content/renderer/pepper/pepper_compositor_host.h
@@ -44,17 +44,18 @@ class PepperCompositorHost : public ppapi::host::ResourceHost {
private:
virtual ~PepperCompositorHost();
- void UpdateLayer(const scoped_refptr<cc::Layer>& layer,
- const ppapi::CompositorLayerData* old_layer,
- const ppapi::CompositorLayerData* new_layer,
- scoped_ptr<base::SharedMemory> image_shm);
- void ResourceReleased(int32_t id,
- uint32_t sync_point,
- bool is_lost);
void ImageReleased(int32_t id,
const scoped_ptr<base::SharedMemory>& shared_memory,
uint32_t sync_point,
bool is_lost);
+ void ResourceReleased(int32_t id,
+ uint32_t sync_point,
+ bool is_lost);
+ void SendCommitLayersReplyIfNecessary();
+ void UpdateLayer(const scoped_refptr<cc::Layer>& layer,
+ const ppapi::CompositorLayerData* old_layer,
+ const ppapi::CompositorLayerData* new_layer,
+ scoped_ptr<base::SharedMemory> image_shm);
// ResourceMessageHandler overrides:
virtual int32_t OnResourceMessageReceived(
@@ -69,6 +70,7 @@ class PepperCompositorHost : public ppapi::host::ResourceHost {
ppapi::host::HostMessageContext* context,
const std::vector<ppapi::CompositorLayerData>& layers,
bool reset);
+ int32_t OnHostMsgRelease(ppapi::host::HostMessageContext* context);
// Non-owning pointer to the plugin instance this context is currently bound
// to, if any. If the context is currently unbound, this will be NULL.

Powered by Google App Engine
This is Rietveld 408576698