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

Side by Side Diff: ppapi/thunk/ppb_layer_compositor_thunk.cc

Issue 7206016: Convert most remaining resources to use the API/thunk system. The significant (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_layer_compositor_api.h ('k') | ppapi/thunk/ppb_transport_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ppapi/c/pp_errors.h"
6 #include "ppapi/c/dev/ppb_layer_compositor_dev.h"
7 #include "ppapi/thunk/thunk.h"
8 #include "ppapi/thunk/enter.h"
9 #include "ppapi/thunk/ppb_layer_compositor_api.h"
10 #include "ppapi/thunk/resource_creation_api.h"
11
12 namespace ppapi {
13 namespace thunk {
14
15 namespace {
16
17 PP_Resource Create(PP_Instance instance) {
18 return 0;
19 }
20
21 PP_Bool IsLayerCompositor(PP_Resource resource) {
22 return PP_FALSE;
23 }
24
25 PP_Bool AddLayer(PP_Resource compositor, PP_Resource layer) {
26 return PP_FALSE;
27 }
28
29 void RemoveLayer(PP_Resource compositor, PP_Resource layer) {
30 }
31
32 void SetZIndex(PP_Resource compositor, PP_Resource layer, int32_t index) {
33 }
34
35 void SetRect(PP_Resource compositor, PP_Resource layer,
36 const struct PP_Rect* rect) {
37 }
38
39 void SetDisplay(PP_Resource compositor, PP_Resource layer,
40 PP_Bool is_displayed) {
41 }
42
43 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) {
44 }
45
46 int32_t SwapBuffers(PP_Resource compositor,
47 struct PP_CompletionCallback callback) {
48 return PP_ERROR_FAILED;
49 }
50
51 const PPB_LayerCompositor_Dev g_ppb_layer_compositor_thunk = {
52 &Create,
53 &IsLayerCompositor,
54 &AddLayer,
55 &RemoveLayer,
56 &SetZIndex,
57 &SetRect,
58 &SetDisplay,
59 &MarkAsDirty,
60 &SwapBuffers,
61 };
62
63 } // namespace
64
65 const PPB_LayerCompositor_Dev* GetPPB_LayerCompositor_Thunk() {
66 return &g_ppb_layer_compositor_thunk;
67 }
68
69 } // namespace thunk
70 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_layer_compositor_api.h ('k') | ppapi/thunk/ppb_transport_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698