| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010, Google Inc. | 2 * Copyright 2010, 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 /** | 76 /** |
| 77 * The scratch canvas object. | 77 * The scratch canvas object. |
| 78 * @private | 78 * @private |
| 79 */ | 79 */ |
| 80 o3d.Bitmap.scratch_canvas_ = null; | 80 o3d.Bitmap.scratch_canvas_ = null; |
| 81 | 81 |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * Gets a canvas to use for scratch work. | 84 * Gets a canvas to use for scratch work. |
| 85 * @return {Canvas} The canvas. |
| 85 * @private | 86 * @private |
| 86 */ | 87 */ |
| 87 o3d.Bitmap.getScratchCanvas_ = function() { | 88 o3d.Bitmap.getScratchCanvas_ = function() { |
| 88 if (!o3d.Bitmap.scratch_canvas_) | 89 if (!o3d.Bitmap.scratch_canvas_) |
| 89 o3d.Bitmap.scratch_canvas_ = document.createElement('CANVAS'); | 90 o3d.Bitmap.scratch_canvas_ = document.createElement('CANVAS'); |
| 90 return o3d.Bitmap.scratch_canvas_; | 91 return o3d.Bitmap.scratch_canvas_; |
| 91 } | 92 } |
| 92 | 93 |
| 93 | 94 |
| 94 /** | 95 /** |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 192 |
| 192 | 193 |
| 193 /** | 194 /** |
| 194 * The Semantic of the bitmap. | 195 * The Semantic of the bitmap. |
| 195 * @type {!o3d.Bitmap.Semantic} | 196 * @type {!o3d.Bitmap.Semantic} |
| 196 */ | 197 */ |
| 197 o3d.Bitmap.prototype.semantic = o3d.Bitmap.UNKNOWN_SEMANTIC; | 198 o3d.Bitmap.prototype.semantic = o3d.Bitmap.UNKNOWN_SEMANTIC; |
| 198 | 199 |
| 199 | 200 |
| 200 | 201 |
| OLD | NEW |