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

Unified Diff: trunk/src/ppapi/proxy/compositor_resource.h

Issue 342323006: Revert 278728 "[PPAPI] Add browser tests for compositor API" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
« no previous file with comments | « trunk/src/ppapi/proxy/compositor_layer_resource.cc ('k') | trunk/src/ppapi/proxy/compositor_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ppapi/proxy/compositor_resource.h
===================================================================
--- trunk/src/ppapi/proxy/compositor_resource.h (revision 278764)
+++ trunk/src/ppapi/proxy/compositor_resource.h (working copy)
@@ -10,7 +10,6 @@
#include "ppapi/proxy/compositor_layer_resource.h"
#include "ppapi/proxy/plugin_resource.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
-#include "ppapi/shared_impl/proxy_lock.h"
#include "ppapi/thunk/ppb_compositor_api.h"
namespace ppapi {
@@ -23,9 +22,13 @@
CompositorResource(Connection connection,
PP_Instance instance);
- bool IsInProgress() const;
+ bool IsInProgress() const {
+ return TrackedCallback::IsPending(commit_callback_);
+ }
- int32_t GenerateResourceId() const;
+ int32_t GenerateResourceId() const {
+ return ++last_resource_id_;
+ }
private:
virtual ~CompositorResource();
@@ -51,7 +54,7 @@
uint32_t sync_point,
bool is_lost);
- void ResetLayersInternal(bool is_aborted);
+ void ResetLayersInternal();
// Callback for CommitLayers().
scoped_refptr<TrackedCallback> commit_callback_;
« no previous file with comments | « trunk/src/ppapi/proxy/compositor_layer_resource.cc ('k') | trunk/src/ppapi/proxy/compositor_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698