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

Side by Side Diff: include/gpu/GrSurface.h

Issue 638403003: Remove uses of GrAutoScratchTexture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 2 months 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
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/core/SkImageFilter.cpp » ('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 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
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698