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

Side by Side Diff: tools/viewer/sk_app/WindowContext.h

Issue 2184273002: Remove unused sk_app::WindowContext::presentRenderSurface (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « tools/viewer/sk_app/VulkanWindowContext.cpp ('k') | tools/viewer/sk_app/WindowContext.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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef WindowContext_DEFINED 7 #ifndef WindowContext_DEFINED
8 #define WindowContext_DEFINED 8 #define WindowContext_DEFINED
9 9
10 #include "DisplayParams.h" 10 #include "DisplayParams.h"
(...skipping 27 matching lines...) Expand all
38 38
39 SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; } 39 SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; }
40 void setSurfaceProps(const SkSurfaceProps& props) { 40 void setSurfaceProps(const SkSurfaceProps& props) {
41 fSurfaceProps = props; 41 fSurfaceProps = props;
42 } 42 }
43 43
44 virtual GrBackendContext getBackendContext() = 0; 44 virtual GrBackendContext getBackendContext() = 0;
45 GrContext* getGrContext() const { return fContext; } 45 GrContext* getGrContext() const { return fContext; }
46 46
47 sk_sp<SkSurface> createOffscreenSurface(bool sRGB); 47 sk_sp<SkSurface> createOffscreenSurface(bool sRGB);
48 void presentRenderSurface(sk_sp<SkSurface> renderSurface, sk_sp<GrRenderTarg et> rt,
49 int colorBits);
50 48
51 protected: 49 protected:
52 virtual bool isGpuContext() { return true; } 50 virtual bool isGpuContext() { return true; }
53 51
54 sk_sp<SkSurface> createRenderSurface(GrBackendRenderTargetDesc, int colorBit s); 52 sk_sp<SkSurface> createRenderSurface(GrBackendRenderTargetDesc, int colorBit s);
55 53
56 GrContext* fContext; 54 GrContext* fContext;
57 55
58 int fWidth; 56 int fWidth;
59 int fHeight; 57 int fHeight;
60 DisplayParams fDisplayParams; 58 DisplayParams fDisplayParams;
61 GrPixelConfig fPixelConfig; 59 GrPixelConfig fPixelConfig;
62 SkSurfaceProps fSurfaceProps; 60 SkSurfaceProps fSurfaceProps;
63 61
64 private: 62 private:
65 sk_sp<SkSurface> createSurface( 63 sk_sp<SkSurface> createSurface(
66 GrBackendRenderTargetDesc*, int colorBits, bool offscreen, bool forc eSRGB); 64 GrBackendRenderTargetDesc*, int colorBits, bool offscreen, bool forc eSRGB);
67 }; 65 };
68 66
69 } // namespace sk_app 67 } // namespace sk_app
70 68
71 #endif 69 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/VulkanWindowContext.cpp ('k') | tools/viewer/sk_app/WindowContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698