| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 cairo_set_source_surface(image_surface_context_, | 167 cairo_set_source_surface(image_surface_context_, |
| 168 source_image_surface, | 168 source_image_surface, |
| 169 dst_left, | 169 dst_left, |
| 170 dst_top); | 170 dst_top); |
| 171 | 171 |
| 172 // Paint to the texture. This copies the data. | 172 // Paint to the texture. This copies the data. |
| 173 cairo_paint(image_surface_context_); | 173 cairo_paint(image_surface_context_); |
| 174 | 174 |
| 175 // Discard our reference to the source surface. | 175 // Discard our reference to the source surface. |
| 176 cairo_surface_destroy(source_image_surface); | 176 cairo_surface_destroy(source_image_surface); |
| 177 |
| 178 if (level == 0) { |
| 179 TextureUpdated(); |
| 180 } |
| 177 } | 181 } |
| 178 | 182 |
| 179 // Locks the given mipmap level of this texture for loading from main memory, | 183 // Locks the given mipmap level of this texture for loading from main memory, |
| 180 // and returns a pointer to the buffer. | 184 // and returns a pointer to the buffer. |
| 181 bool TextureCairo::PlatformSpecificLock( | 185 bool TextureCairo::PlatformSpecificLock( |
| 182 int level, void** data, int* pitch, Texture::AccessMode mode) { | 186 int level, void** data, int* pitch, Texture::AccessMode mode) { |
| 183 NOTIMPLEMENTED(); | 187 NOTIMPLEMENTED(); |
| 184 return true; | 188 return true; |
| 185 } | 189 } |
| 186 | 190 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 203 | 207 |
| 204 // Returns the implementation-specific texture handle for this texture. | 208 // Returns the implementation-specific texture handle for this texture. |
| 205 void* TextureCairo::GetTextureHandle() const { | 209 void* TextureCairo::GetTextureHandle() const { |
| 206 NOTIMPLEMENTED(); | 210 NOTIMPLEMENTED(); |
| 207 return reinterpret_cast<void*>(NULL); | 211 return reinterpret_cast<void*>(NULL); |
| 208 } | 212 } |
| 209 | 213 |
| 210 } // namespace o2d | 214 } // namespace o2d |
| 211 | 215 |
| 212 } // namespace o3d | 216 } // namespace o3d |
| OLD | NEW |