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

Side by Side Diff: ppapi/proxy/compositor_layer_resource.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Folded sync_point into sync_tokens Created 5 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_
6 #define PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_ 6 #define PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_
7 7
8 #include "ppapi/c/ppb_compositor_layer.h" 8 #include "ppapi/c/ppb_compositor_layer.h"
9 #include "ppapi/proxy/plugin_resource.h" 9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/proxy/ppapi_proxy_export.h" 10 #include "ppapi/proxy/ppapi_proxy_export.h"
11 #include "ppapi/shared_impl/compositor_layer_data.h" 11 #include "ppapi/shared_impl/compositor_layer_data.h"
12 #include "ppapi/shared_impl/scoped_pp_resource.h" 12 #include "ppapi/shared_impl/scoped_pp_resource.h"
13 #include "ppapi/thunk/ppb_compositor_layer_api.h" 13 #include "ppapi/thunk/ppb_compositor_layer_api.h"
14 14
15 namespace gpu {
16 struct SyncToken;
17 }
18
15 namespace ppapi { 19 namespace ppapi {
16 namespace proxy { 20 namespace proxy {
17 21
18 class CompositorResource; 22 class CompositorResource;
19 23
20 class PPAPI_PROXY_EXPORT CompositorLayerResource 24 class PPAPI_PROXY_EXPORT CompositorLayerResource
21 : public PluginResource, 25 : public PluginResource,
22 public thunk::PPB_CompositorLayer_API { 26 public thunk::PPB_CompositorLayer_API {
23 public: 27 public:
24 // Release callback for texture or image layer. 28 // Release callback for texture or image layer.
25 typedef base::Callback<void(int32_t, uint32_t, bool)> ReleaseCallback; 29 typedef base::Callback<void(int32_t, const gpu::SyncToken&, bool)>
30 ReleaseCallback;
26 31
27 CompositorLayerResource(Connection connection, 32 CompositorLayerResource(Connection connection,
28 PP_Instance instance, 33 PP_Instance instance,
29 const CompositorResource* compositor); 34 const CompositorResource* compositor);
30 35
31 const CompositorLayerData& data() const { return data_; } 36 const CompositorLayerData& data() const { return data_; }
32 const ReleaseCallback& release_callback() const { 37 const ReleaseCallback& release_callback() const {
33 return release_callback_; 38 return release_callback_;
34 } 39 }
35 void ResetReleaseCallback() { release_callback_.Reset(); } 40 void ResetReleaseCallback() { release_callback_.Reset(); }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Layer data. 101 // Layer data.
97 CompositorLayerData data_; 102 CompositorLayerData data_;
98 103
99 DISALLOW_COPY_AND_ASSIGN(CompositorLayerResource); 104 DISALLOW_COPY_AND_ASSIGN(CompositorLayerResource);
100 }; 105 };
101 106
102 } // namespace proxy 107 } // namespace proxy
103 } // namespace ppapi 108 } // namespace ppapi
104 109
105 #endif // PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_ 110 #endif // PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698