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

Side by Side Diff: src/gpu/GrGpu.h

Issue 2294533002: Add some copy support for vulkan msaa (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update initDesc name Created 4 years, 3 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 | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 * @param offset offset from the start of the buffer 301 * @param offset offset from the start of the buffer
302 * @param rowBytes number of bytes between consecutive rows. Zero 302 * @param rowBytes number of bytes between consecutive rows. Zero
303 * means rows are tightly packed. 303 * means rows are tightly packed.
304 */ 304 */
305 bool transferPixels(GrSurface* surface, 305 bool transferPixels(GrSurface* surface,
306 int left, int top, int width, int height, 306 int left, int top, int width, int height,
307 GrPixelConfig config, GrBuffer* transferBuffer, 307 GrPixelConfig config, GrBuffer* transferBuffer,
308 size_t offset, size_t rowBytes); 308 size_t offset, size_t rowBytes);
309 309
310 /** 310 /**
311 * This is can be called before allocating a texture to be a dst for copySur face. It will 311 * This is can be called before allocating a texture to be a dst for copySur face. This is only
312 * used for doing dst copies needed in blends, thus the src is always a GrRe nderTarget. It will
312 * populate the origin, config, and flags fields of the desc such that copyS urface can 313 * populate the origin, config, and flags fields of the desc such that copyS urface can
313 * efficiently succeed. It should only succeed if it can allow copySurface t o perform a copy 314 * efficiently succeed.
314 * that would be more effecient than drawing the src to a dst render target.
315 */ 315 */
316 virtual bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* des c) const = 0; 316 virtual bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* de sc) const = 0;
317 317
318 // After the client interacts directly with the 3D context state the GrGpu 318 // After the client interacts directly with the 3D context state the GrGpu
319 // must resync its internal state and assumptions about 3D context state. 319 // must resync its internal state and assumptions about 3D context state.
320 // Each time this occurs the GrGpu bumps a timestamp. 320 // Each time this occurs the GrGpu bumps a timestamp.
321 // state of the 3D context 321 // state of the 3D context
322 // At 10 resets / frame and 60fps a 64bit timestamp will overflow in about 322 // At 10 resets / frame and 60fps a 64bit timestamp will overflow in about
323 // a billion years. 323 // a billion years.
324 typedef uint64_t ResetTimestamp; 324 typedef uint64_t ResetTimestamp;
325 325
326 // This timestamp is always older than the current timestamp 326 // This timestamp is always older than the current timestamp
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs; 598 SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs;
599 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 599 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
600 GrContext* fContext; 600 GrContext* fContext;
601 601
602 friend class GrPathRendering; 602 friend class GrPathRendering;
603 friend class gr_instanced::InstancedRendering; 603 friend class gr_instanced::InstancedRendering;
604 typedef SkRefCnt INHERITED; 604 typedef SkRefCnt INHERITED;
605 }; 605 };
606 606
607 #endif 607 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698