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

Side by Side Diff: core/cross/cairo/texture_cairo.cc

Issue 5591006: Add an API to allow JavaScript to determine the framerate of individual dynam... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years 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 | « no previous file | core/cross/gl/texture_gl.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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | core/cross/gl/texture_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698