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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.h

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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) 2011 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 WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/shared_impl/function_group_base.h" 9 #include "ppapi/shared_impl/function_group_base.h"
10 #include "ppapi/thunk/resource_creation_api.h" 10 #include "ppapi/thunk/resource_creation_api.h"
11 11
12 namespace webkit { 12 namespace webkit {
13 namespace ppapi { 13 namespace ppapi {
14 14
15 class ResourceCreationImpl : public ::ppapi::shared_impl::FunctionGroupBase, 15 class ResourceCreationImpl : public ::ppapi::shared_impl::FunctionGroupBase,
16 public ::ppapi::thunk::ResourceCreationAPI { 16 public ::ppapi::thunk::ResourceCreationAPI {
17 public: 17 public:
18 ResourceCreationImpl(); 18 ResourceCreationImpl();
19 virtual ~ResourceCreationImpl(); 19 virtual ~ResourceCreationImpl();
20 20
21 // FunctionGroupBase implementation. 21 // FunctionGroupBase implementation.
22 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreation(); 22 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreation();
23 23
24 // ResourceCreationAPI implementation. 24 // ResourceCreationAPI implementation.
25 virtual PP_Resource CreateFont(PP_Instance instance,
26 const PP_FontDescription_Dev* description);
25 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, 27 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance,
26 const PP_Size& size, 28 const PP_Size& size,
27 PP_Bool is_always_opaque); 29 PP_Bool is_always_opaque);
28 virtual PP_Resource CreateImageData(PP_Instance instance, 30 virtual PP_Resource CreateImageData(PP_Instance instance,
29 PP_ImageDataFormat format, 31 PP_ImageDataFormat format,
30 const PP_Size& size, 32 const PP_Size& size,
31 PP_Bool init_to_zero); 33 PP_Bool init_to_zero);
32 34
33 private: 35 private:
34 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); 36 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl);
35 }; 37 };
36 38
37 } // namespace ppapi 39 } // namespace ppapi
38 } // namespace webkit 40 } // namespace webkit
39 41
40 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 42 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698