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

Side by Side Diff: examples/pong/view.cc

Issue 7982038: Merge in r1190 (add pong). (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/branches/trout/src/
Patch Set: 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 | « examples/pong/view.h ('k') | no next file » | 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) 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
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
OLDNEW
« no previous file with comments | « examples/pong/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698