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

Side by Side Diff: src/image/SkSurface_Gpu.h

Issue 2176383002: start on apply gamma cleanup (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/image/SkSurface_Base.h ('k') | src/image/SkSurface_Gpu.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 2014 Google Inc. 2 * Copyright 2014 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 SkSurface_Gpu_DEFINED 8 #ifndef SkSurface_Gpu_DEFINED
9 #define SkSurface_Gpu_DEFINED 9 #define SkSurface_Gpu_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 bool onGetRenderTargetHandle(GrBackendObject*, BackendHandleAccess) override ; 23 bool onGetRenderTargetHandle(GrBackendObject*, BackendHandleAccess) override ;
24 SkCanvas* onNewCanvas() override; 24 SkCanvas* onNewCanvas() override;
25 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override; 25 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override;
26 sk_sp<SkImage> onNewImageSnapshot(SkBudgeted, ForceCopyMode) override; 26 sk_sp<SkImage> onNewImageSnapshot(SkBudgeted, ForceCopyMode) override;
27 void onCopyOnWrite(ContentChangeMode) override; 27 void onCopyOnWrite(ContentChangeMode) override;
28 void onDiscard() override; 28 void onDiscard() override;
29 void onPrepareForExternalIO() override; 29 void onPrepareForExternalIO() override;
30 30
31 SkGpuDevice* getDevice() { return fDevice.get(); } 31 SkGpuDevice* getDevice() { return fDevice.get(); }
32 32
33 bool onBlitWithGamma(SkImage*, SkScalar gamma) override;
34
33 private: 35 private:
36
34 sk_sp<SkGpuDevice> fDevice; 37 sk_sp<SkGpuDevice> fDevice;
35 38
36 typedef SkSurface_Base INHERITED; 39 typedef SkSurface_Base INHERITED;
37 }; 40 };
38 41
39 #endif // SK_SUPPORT_GPU 42 #endif // SK_SUPPORT_GPU
40 43
41 #endif // SkSurface_Gpu_DEFINED 44 #endif // SkSurface_Gpu_DEFINED
OLDNEW
« no previous file with comments | « src/image/SkSurface_Base.h ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698