| OLD | NEW |
| 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 MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 5 #ifndef MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
| 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "mojo/public/c/gles2/gles2_types.h" | 10 #include "mojo/public/c/gles2/gles2_types.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 GLenum access) OVERRIDE; | 54 GLenum access) OVERRIDE; |
| 55 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; | 55 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; |
| 56 virtual uint32_t InsertSyncPoint() OVERRIDE; | 56 virtual uint32_t InsertSyncPoint() OVERRIDE; |
| 57 virtual uint32_t InsertFutureSyncPoint() OVERRIDE; | 57 virtual uint32_t InsertFutureSyncPoint() OVERRIDE; |
| 58 virtual void RetireSyncPoint(uint32_t sync_point) OVERRIDE; | 58 virtual void RetireSyncPoint(uint32_t sync_point) OVERRIDE; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 virtual ~Graphics3DResource(); | 61 virtual ~Graphics3DResource(); |
| 62 | 62 |
| 63 static void ContextLostThunk(void* closure); | 63 static void ContextLostThunk(void* closure); |
| 64 static void DrawAnimationFrameThunk(void* closure); | |
| 65 void ContextLost(); | 64 void ContextLost(); |
| 66 | 65 |
| 67 MojoGLES2Context context_; | 66 MojoGLES2Context context_; |
| 68 DISALLOW_COPY_AND_ASSIGN(Graphics3DResource); | 67 DISALLOW_COPY_AND_ASSIGN(Graphics3DResource); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace examples | 70 } // namespace examples |
| 72 } // namespace mojo | 71 } // namespace mojo |
| 73 | 72 |
| 74 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 73 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
| OLD | NEW |