| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
| 9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
| 10 | 10 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 * @param surface the surface to write to. | 252 * @param surface the surface to write to. |
| 253 * @param left left edge of the rectangle to write (inclusive) | 253 * @param left left edge of the rectangle to write (inclusive) |
| 254 * @param top top edge of the rectangle to write (inclusive) | 254 * @param top top edge of the rectangle to write (inclusive) |
| 255 * @param width width of rectangle to write in pixels. | 255 * @param width width of rectangle to write in pixels. |
| 256 * @param height height of rectangle to write in pixels. | 256 * @param height height of rectangle to write in pixels. |
| 257 * @param config the pixel config of the source buffer | 257 * @param config the pixel config of the source buffer |
| 258 * @param buffer memory to read pixels from | 258 * @param buffer memory to read pixels from |
| 259 * @param rowBytes number of bytes between consecutive rows. Zero | 259 * @param rowBytes number of bytes between consecutive rows. Zero |
| 260 * means rows are tightly packed. | 260 * means rows are tightly packed. |
| 261 * @param pixelOpsFlags see PixelOpsFlags enum above. | 261 * @param pixelOpsFlags see PixelOpsFlags enum above. |
| 262 * |
| 262 * @return true if the write succeeded, false if not. The write can fail bec
ause of an | 263 * @return true if the write succeeded, false if not. The write can fail bec
ause of an |
| 263 * unsupported combination of surface and src configs. | 264 * unsupported combination of surface and src configs. |
| 264 */ | 265 */ |
| 265 bool writeSurfacePixels(GrSurface* surface, | 266 bool writeSurfacePixels(GrSurface* surface, |
| 266 int left, int top, int width, int height, | 267 int left, int top, int width, int height, |
| 267 GrPixelConfig config, const void* buffer, | 268 GrPixelConfig config, const void* buffer, |
| 268 size_t rowBytes, | 269 size_t rowBytes, |
| 269 uint32_t pixelOpsFlags = 0); | 270 uint32_t pixelOpsFlags = 0); |
| 270 | 271 |
| 271 /** | 272 /** |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 /** | 430 /** |
| 430 * A callback similar to the above for use by the TextBlobCache | 431 * A callback similar to the above for use by the TextBlobCache |
| 431 * TODO move textblob draw calls below context so we can use the call above. | 432 * TODO move textblob draw calls below context so we can use the call above. |
| 432 */ | 433 */ |
| 433 static void TextBlobCacheOverBudgetCB(void* data); | 434 static void TextBlobCacheOverBudgetCB(void* data); |
| 434 | 435 |
| 435 typedef SkRefCnt INHERITED; | 436 typedef SkRefCnt INHERITED; |
| 436 }; | 437 }; |
| 437 | 438 |
| 438 #endif | 439 #endif |
| OLD | NEW |