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

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

Issue 1420963008: Pull texture-backed bitmap resampler out of GrTextureParamsAdjuster code into its own class. (Closed) Base URL: https://skia.googlesource.com/skia.git@nomin
Patch Set: fix unused var warning Created 5 years, 1 month 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/core/SkImageCacherator.cpp ('k') | 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 int widt h, 377 int widt h,
378 int heig ht) = 0; 378 int heig ht) = 0;
379 // clears target's entire stencil buffer to 0 379 // clears target's entire stencil buffer to 0
380 virtual void clearStencil(GrRenderTarget* target) = 0; 380 virtual void clearStencil(GrRenderTarget* target) = 0;
381 381
382 382
383 // Determines whether a copy of a texture must be made in order to be compat ible with 383 // Determines whether a copy of a texture must be made in order to be compat ible with
384 // a given GrTextureParams. If so, the width, height and filter used for the copy are 384 // a given GrTextureParams. If so, the width, height and filter used for the copy are
385 // output via the CopyParams. 385 // output via the CopyParams.
386 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, 386 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&,
387 GrTextureParamsAdjuster::CopyParams*) const; 387 GrTextureProducer::CopyParams*) const;
388 388
389 // This is only to be used in GL-specific tests. 389 // This is only to be used in GL-specific tests.
390 virtual const GrGLContext* glContextForTesting() const { return nullptr; } 390 virtual const GrGLContext* glContextForTesting() const { return nullptr; }
391 391
392 protected: 392 protected:
393 // Functions used to map clip-respecting stencil tests into normal 393 // Functions used to map clip-respecting stencil tests into normal
394 // stencil funcs supported by GPUs. 394 // stencil funcs supported by GPUs.
395 static GrStencilFunc ConvertStencilFunc(bool stencilInClip, 395 static GrStencilFunc ConvertStencilFunc(bool stencilInClip,
396 GrStencilFunc func); 396 GrStencilFunc func);
397 static void ConvertStencilFuncAndMask(GrStencilFunc func, 397 static void ConvertStencilFuncAndMask(GrStencilFunc func,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 ResetTimestamp fResetTi mestamp; 495 ResetTimestamp fResetTi mestamp;
496 uint32_t fResetBi ts; 496 uint32_t fResetBi ts;
497 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 497 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
498 GrContext* fContext ; 498 GrContext* fContext ;
499 499
500 friend class GrPathRendering; 500 friend class GrPathRendering;
501 typedef SkRefCnt INHERITED; 501 typedef SkRefCnt INHERITED;
502 }; 502 };
503 503
504 #endif 504 #endif
OLDNEW
« no previous file with comments | « src/core/SkImageCacherator.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698