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

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

Issue 475123003: [PPAPI] Add target param for CompositorLayer::SetTexture(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review issues Created 6 years, 4 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
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"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Resource overrides: 47 // Resource overrides:
48 virtual thunk::PPB_CompositorLayer_API* AsPPB_CompositorLayer_API() OVERRIDE; 48 virtual thunk::PPB_CompositorLayer_API* AsPPB_CompositorLayer_API() OVERRIDE;
49 49
50 // thunk::PPB_Compositor_API overrides: 50 // thunk::PPB_Compositor_API overrides:
51 virtual int32_t SetColor(float red, 51 virtual int32_t SetColor(float red,
52 float green, 52 float green,
53 float blue, 53 float blue,
54 float alpha, 54 float alpha,
55 const PP_Size* size) OVERRIDE; 55 const PP_Size* size) OVERRIDE;
56 virtual int32_t SetTexture( 56 virtual int32_t SetTexture0_1(
57 PP_Resource context, 57 PP_Resource context,
58 uint32_t texture, 58 uint32_t texture,
59 const PP_Size* size, 59 const PP_Size* size,
60 const scoped_refptr<ppapi::TrackedCallback>& callback) OVERRIDE;
61 virtual int32_t SetTexture(
62 PP_Resource context,
63 uint32_t target,
64 uint32_t texture,
65 const PP_Size* size,
60 const scoped_refptr<TrackedCallback>& callback) OVERRIDE; 66 const scoped_refptr<TrackedCallback>& callback) OVERRIDE;
61 virtual int32_t SetImage( 67 virtual int32_t SetImage(
62 PP_Resource image_data, 68 PP_Resource image_data,
63 const PP_Size* size, 69 const PP_Size* size,
64 const scoped_refptr<TrackedCallback>& callback) OVERRIDE; 70 const scoped_refptr<TrackedCallback>& callback) OVERRIDE;
65 virtual int32_t SetClipRect(const PP_Rect* rect) OVERRIDE; 71 virtual int32_t SetClipRect(const PP_Rect* rect) OVERRIDE;
66 virtual int32_t SetTransform(const float matrix[16]) OVERRIDE; 72 virtual int32_t SetTransform(const float matrix[16]) OVERRIDE;
67 virtual int32_t SetOpacity(float opacity) OVERRIDE; 73 virtual int32_t SetOpacity(float opacity) OVERRIDE;
68 virtual int32_t SetBlendMode(PP_BlendMode mode) OVERRIDE; 74 virtual int32_t SetBlendMode(PP_BlendMode mode) OVERRIDE;
69 virtual int32_t SetSourceRect(const PP_FloatRect* rect) OVERRIDE; 75 virtual int32_t SetSourceRect(const PP_FloatRect* rect) OVERRIDE;
(...skipping 20 matching lines...) Expand all
90 // Layer data. 96 // Layer data.
91 CompositorLayerData data_; 97 CompositorLayerData data_;
92 98
93 DISALLOW_COPY_AND_ASSIGN(CompositorLayerResource); 99 DISALLOW_COPY_AND_ASSIGN(CompositorLayerResource);
94 }; 100 };
95 101
96 } // namespace proxy 102 } // namespace proxy
97 } // namespace ppapi 103 } // namespace ppapi
98 104
99 #endif // PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_ 105 #endif // PPAPI_PROXY_COMPOSITOR_LAYER_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c ('k') | ppapi/proxy/compositor_layer_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698