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

Side by Side Diff: ppapi/shared_impl/ppb_graphics_3d_shared.h

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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
« no previous file with comments | « ppapi/shared_impl/ppb_gamepad_shared.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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 #ifndef PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
6 #define PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 GLint level, 44 GLint level,
45 GLint xoffset, 45 GLint xoffset,
46 GLint yoffset, 46 GLint yoffset,
47 GLsizei width, 47 GLsizei width,
48 GLsizei height, 48 GLsizei height,
49 GLenum format, 49 GLenum format,
50 GLenum type, 50 GLenum type,
51 GLenum access) OVERRIDE; 51 GLenum access) OVERRIDE;
52 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; 52 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
53 53
54 gpu::gles2::GLES2Implementation* gles2_impl() { 54 gpu::gles2::GLES2Implementation* gles2_impl() { return gles2_impl_.get(); }
55 return gles2_impl_.get();
56 }
57 55
58 // Sends swap-buffers notification to the plugin. 56 // Sends swap-buffers notification to the plugin.
59 void SwapBuffersACK(int32_t pp_error); 57 void SwapBuffersACK(int32_t pp_error);
60 58
61 protected: 59 protected:
62 PPB_Graphics3D_Shared(PP_Instance instance); 60 PPB_Graphics3D_Shared(PP_Instance instance);
63 PPB_Graphics3D_Shared(const HostResource& host_resource); 61 PPB_Graphics3D_Shared(const HostResource& host_resource);
64 virtual ~PPB_Graphics3D_Shared(); 62 virtual ~PPB_Graphics3D_Shared();
65 63
66 virtual gpu::CommandBuffer* GetCommandBuffer() = 0; 64 virtual gpu::CommandBuffer* GetCommandBuffer() = 0;
(...skipping 13 matching lines...) Expand all
80 78
81 // Callback that needs to be executed when swap-buffers is completed. 79 // Callback that needs to be executed when swap-buffers is completed.
82 scoped_refptr<TrackedCallback> swap_callback_; 80 scoped_refptr<TrackedCallback> swap_callback_;
83 81
84 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); 82 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared);
85 }; 83 };
86 84
87 } // namespace ppapi 85 } // namespace ppapi
88 86
89 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 87 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
90
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_gamepad_shared.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698