| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2012 Google Inc. | 2  * Copyright 2012 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 | 8 | 
| 9 #ifndef GrSurface_DEFINED | 9 #ifndef GrSurface_DEFINED | 
| 10 #define GrSurface_DEFINED | 10 #define GrSurface_DEFINED | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 98      * rectangle. | 98      * rectangle. | 
| 99      * @param left          left edge of the rectangle to write (inclusive) | 99      * @param left          left edge of the rectangle to write (inclusive) | 
| 100      * @param top           top edge of the rectangle to write (inclusive) | 100      * @param top           top edge of the rectangle to write (inclusive) | 
| 101      * @param width         width of rectangle to write in pixels. | 101      * @param width         width of rectangle to write in pixels. | 
| 102      * @param height        height of rectangle to write in pixels. | 102      * @param height        height of rectangle to write in pixels. | 
| 103      * @param config        the pixel config of the source buffer | 103      * @param config        the pixel config of the source buffer | 
| 104      * @param buffer        memory to read the rectangle from. | 104      * @param buffer        memory to read the rectangle from. | 
| 105      * @param rowBytes      number of bytes between consecutive rows. Zero means
      rows are tightly | 105      * @param rowBytes      number of bytes between consecutive rows. Zero means
      rows are tightly | 
| 106      *                      packed. | 106      *                      packed. | 
| 107      * @param pixelOpsFlags See the GrContext::PixelOpsFlags enum. | 107      * @param pixelOpsFlags See the GrContext::PixelOpsFlags enum. | 
|  | 108      * | 
|  | 109      * @return true if the read succeeded, false if not. The read can fail becau
     se of an unsupported | 
|  | 110      *              pixel config. | 
| 108      */ | 111      */ | 
| 109     bool writePixels(int left, int top, int width, int height, | 112     bool writePixels(int left, int top, int width, int height, | 
| 110                      GrPixelConfig config, | 113                      GrPixelConfig config, | 
| 111                      const void* buffer, | 114                      const void* buffer, | 
| 112                      size_t rowBytes = 0, | 115                      size_t rowBytes = 0, | 
| 113                      uint32_t pixelOpsFlags = 0); | 116                      uint32_t pixelOpsFlags = 0); | 
| 114 | 117 | 
| 115     /** | 118     /** | 
| 116      * After this returns any pending writes to the surface will be issued to th
     e backend 3D API. | 119      * After this returns any pending writes to the surface will be issued to th
     e backend 3D API. | 
| 117      */ | 120      */ | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 138     , fDesc(desc) { | 141     , fDesc(desc) { | 
| 139     } | 142     } | 
| 140 | 143 | 
| 141     GrTextureDesc fDesc; | 144     GrTextureDesc fDesc; | 
| 142 | 145 | 
| 143 private: | 146 private: | 
| 144     typedef GrGpuResource INHERITED; | 147     typedef GrGpuResource INHERITED; | 
| 145 }; | 148 }; | 
| 146 | 149 | 
| 147 #endif | 150 #endif | 
| OLD | NEW | 
|---|