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

Side by Side Diff: core/cross/message_queue.cc

Issue 3083012: Tidying up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 4 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 | « core/cross/gl/primitive_gl.cc ('k') | core/cross/primitive.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 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 String MessageQueue::GetSocketAddress() const { 185 String MessageQueue::GetSocketAddress() const {
186 return &server_socket_address_.path[0]; 186 return &server_socket_address_.path[0];
187 } 187 }
188 188
189 189
190 // Checks the message queue for an incoming message. If one is found 190 // Checks the message queue for an incoming message. If one is found
191 // then it processes it, otherwise it just returns. 191 // then it processes it, otherwise it just returns.
192 bool MessageQueue::CheckForNewMessages(bool* has_new_texture) { 192 bool MessageQueue::CheckForNewMessages(bool* has_new_texture) {
193 // The flag will be set to true if we receive a new texture in 193 // The flag will be set to true if we receive a new texture in
194 // ProcessMessageUpdateTexture2DRect() or 194 // ProcessMessageUpdateTexture2DRect() or
195 // ProcessMessageUpdateTexture2D() 195 // ProcessMessageUpdateTexture2D()
196 has_new_texture_ = false; 196 has_new_texture_ = false;
197 197
198 // NOTE: This code uses reasonable defaults for the max 198 // NOTE: This code uses reasonable defaults for the max
199 // sizes of the received messages. If a message uses more memory or 199 // sizes of the received messages. If a message uses more memory or
200 // transmits more data handles then it will appear as truncated. If 200 // transmits more data handles then it will appear as truncated. If
201 // we find that there are valid messages with size larger than 201 // we find that there are valid messages with size larger than
202 // what's defined here we should adjust the constants accordingly. 202 // what's defined here we should adjust the constants accordingly.
203 const int kBufferLength = 1024; // max 1K of memory transfered per message 203 const int kBufferLength = 1024; // max 1K of memory transfered per message
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 response_header.handles = NULL; 879 response_header.handles = NULL;
880 response_header.handle_count = 0; 880 response_header.handle_count = 0;
881 nacl::SendDatagram(client->client_handle(), &response_header, 0); 881 nacl::SendDatagram(client->client_handle(), &response_header, 0);
882 882
883 return true; 883 return true;
884 } 884 }
885 885
886 886
887 887
888 } // namespace o3d 888 } // namespace o3d
OLDNEW
« no previous file with comments | « core/cross/gl/primitive_gl.cc ('k') | core/cross/primitive.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698