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

Side by Side Diff: ppapi/thunk/ppb_graphics_2d_api.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated TestURLLoader to test blocking callbacks. Created 8 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ppapi/c/pp_bool.h" 5 #include "ppapi/c/pp_bool.h"
6 #include "ppapi/c/pp_completion_callback.h" 6 #include "ppapi/c/pp_completion_callback.h"
7 #include "ppapi/c/pp_point.h" 7 #include "ppapi/c/pp_point.h"
8 #include "ppapi/c/pp_rect.h" 8 #include "ppapi/c/pp_rect.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_size.h" 10 #include "ppapi/c/pp_size.h"
11 #include "ppapi/shared_impl/api_callback_type.h"
11 12
12 namespace ppapi { 13 namespace ppapi {
13 namespace thunk { 14 namespace thunk {
14 15
15 class PPB_Graphics2D_API { 16 class PPB_Graphics2D_API {
16 public: 17 public:
17 virtual ~PPB_Graphics2D_API() {} 18 virtual ~PPB_Graphics2D_API() {}
18 19
19 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) = 0; 20 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) = 0;
20 virtual void PaintImageData(PP_Resource image_data, 21 virtual void PaintImageData(PP_Resource image_data,
21 const PP_Point* top_left, 22 const PP_Point* top_left,
22 const PP_Rect* src_rect) = 0; 23 const PP_Rect* src_rect) = 0;
23 virtual void Scroll(const PP_Rect* clip_rect, 24 virtual void Scroll(const PP_Rect* clip_rect,
24 const PP_Point* amount) = 0; 25 const PP_Point* amount) = 0;
25 virtual void ReplaceContents(PP_Resource image_data) = 0; 26 virtual void ReplaceContents(PP_Resource image_data) = 0;
26 virtual int32_t Flush(PP_CompletionCallback callback) = 0; 27 virtual int32_t Flush(ApiCallbackType callback) = 0;
27 }; 28 };
28 29
29 } // namespace thunk 30 } // namespace thunk
30 } // namespace ppapi 31 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698