| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Native Client 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 #include "examples/pong/view.h" | 5 #include "examples/pong/view.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 return; | 153 return; |
| 154 flush_pending_ = true; | 154 flush_pending_ = true; |
| 155 graphics_2d_context_->Flush(pp::CompletionCallback(&FlushCallback, this)); | 155 graphics_2d_context_->Flush(pp::CompletionCallback(&FlushCallback, this)); |
| 156 } | 156 } |
| 157 | 157 |
| 158 bool View::IsContextValid() const { | 158 bool View::IsContextValid() const { |
| 159 return graphics_2d_context_ != NULL; | 159 return graphics_2d_context_ != NULL; |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace pong | 162 } // namespace pong |
| OLD | NEW |