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

Side by Side Diff: ppapi/proxy/ppb_opengles2_proxy.cc

Issue 7740038: Use macros to define pepper interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years, 3 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/proxy/ppb_opengles2_proxy.h ('k') | ppapi/proxy/ppb_pdf_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/proxy/ppb_opengles2_proxy.h"
6
7 #include "ppapi/shared_impl/opengles2_impl.h"
8
9 namespace ppapi {
10 namespace proxy {
11
12 namespace {
13 InterfaceProxy* CreateOpenGLES2Proxy(Dispatcher* dispatcher,
14 const void* target_interface) {
15 return new PPB_OpenGLES2_Proxy(dispatcher, target_interface);
16 }
17 } // namespace
18
19 PPB_OpenGLES2_Proxy::PPB_OpenGLES2_Proxy(Dispatcher* dispatcher,
20 const void* target_interface)
21 : InterfaceProxy(dispatcher, target_interface) {
22 }
23
24 PPB_OpenGLES2_Proxy::~PPB_OpenGLES2_Proxy() {
25 }
26
27 // static
28 const InterfaceProxy::Info* PPB_OpenGLES2_Proxy::GetInfo() {
29 static const Info info = {
30 ppapi::OpenGLES2Impl::GetInterface(),
31 PPB_OPENGLES2_INTERFACE,
32 INTERFACE_ID_PPB_OPENGLES2,
33 false,
34 &CreateOpenGLES2Proxy,
35 };
36 return &info;
37 }
38
39 bool PPB_OpenGLES2_Proxy::OnMessageReceived(const IPC::Message& msg) {
40 return false;
41 }
42
43 } // namespace proxy
44 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_opengles2_proxy.h ('k') | ppapi/proxy/ppb_pdf_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698