| OLD | NEW |
| 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_CPP_GRAPHICS_2D_H_ | 5 #ifndef PPAPI_CPP_GRAPHICS_2D_H_ |
| 6 #define PPAPI_CPP_GRAPHICS_2D_H_ | 6 #define PPAPI_CPP_GRAPHICS_2D_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_stdint.h" | 8 #include "ppapi/c/pp_stdint.h" |
| 9 #include "ppapi/cpp/resource.h" | 9 #include "ppapi/cpp/resource.h" |
| 10 #include "ppapi/cpp/size.h" | 10 #include "ppapi/cpp/size.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 /// not issued its callback yet. In the failure case, nothing will be | 253 /// not issued its callback yet. In the failure case, nothing will be |
| 254 /// updated and no callback will be scheduled. | 254 /// updated and no callback will be scheduled. |
| 255 | 255 |
| 256 // TODO(darin): We should ensure that the completion callback always runs, so | 256 // TODO(darin): We should ensure that the completion callback always runs, so |
| 257 // that it is easier for consumers to manage memory referenced by a callback. | 257 // that it is easier for consumers to manage memory referenced by a callback. |
| 258 | 258 |
| 259 // TODO(): Add back in the synchronous mode description once we have support | 259 // TODO(): Add back in the synchronous mode description once we have support |
| 260 // for it. | 260 // for it. |
| 261 int32_t Flush(const CompletionCallback& cc); | 261 int32_t Flush(const CompletionCallback& cc); |
| 262 | 262 |
| 263 private: | 263 protected: |
| 264 Size size_; | 264 Size size_; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 } // namespace pp | 267 } // namespace pp |
| 268 | 268 |
| 269 #endif // PPAPI_CPP_GRAPHICS_2D_H_ | 269 #endif // PPAPI_CPP_GRAPHICS_2D_H_ |
| OLD | NEW |