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

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

Issue 1270583003: Move some parts of onReadPixels up to GrGpu readPixels. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 5 years, 4 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 | « no previous file | src/gpu/GrGpu.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 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 virtual bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int r eadHeight, 464 virtual bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int r eadHeight,
465 size_t rowBytes, GrPixelConfig readConfig, DrawPreference*, 465 size_t rowBytes, GrPixelConfig readConfig, DrawPreference*,
466 ReadPixelTempDrawInfo*) = 0; 466 ReadPixelTempDrawInfo*) = 0;
467 virtual bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int heig ht, size_t rowBytes, 467 virtual bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int heig ht, size_t rowBytes,
468 GrPixelConfig srcConfig, DrawPreference*, 468 GrPixelConfig srcConfig, DrawPreference*,
469 WritePixelTempDrawInfo*) = 0; 469 WritePixelTempDrawInfo*) = 0;
470 470
471 // overridden by backend-specific derived class to perform the surface read 471 // overridden by backend-specific derived class to perform the surface read
472 virtual bool onReadPixels(GrSurface*, 472 virtual bool onReadPixels(GrSurface*,
473 int left, int top, int width, int height, 473 int left, int top,
474 int width, int height,
474 GrPixelConfig, 475 GrPixelConfig,
475 void* buffer, 476 void* buffer,
476 size_t rowBytes) = 0; 477 size_t rowBytes) = 0;
477 478
478 // overridden by backend-specific derived class to perform the surface write 479 // overridden by backend-specific derived class to perform the surface write
479 virtual bool onWritePixels(GrSurface*, 480 virtual bool onWritePixels(GrSurface*,
480 int left, int top, int width, int height, 481 int left, int top, int width, int height,
481 GrPixelConfig config, const void* buffer, 482 GrPixelConfig config, const void* buffer,
482 size_t rowBytes) = 0; 483 size_t rowBytes) = 0;
483 484
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 GrTraceMarkerSet fActiveT raceMarkers; 518 GrTraceMarkerSet fActiveT raceMarkers;
518 GrTraceMarkerSet fStoredT raceMarkers; 519 GrTraceMarkerSet fStoredT raceMarkers;
519 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 520 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
520 GrContext* fContext ; 521 GrContext* fContext ;
521 522
522 friend class GrPathRendering; 523 friend class GrPathRendering;
523 typedef SkRefCnt INHERITED; 524 typedef SkRefCnt INHERITED;
524 }; 525 };
525 526
526 #endif 527 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698