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

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

Issue 1950983007: Add sRGB mode toggle to Viewer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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
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 "GrTypes.h" 10 #include "GrTypes.h"
(...skipping 10 matching lines...) Expand all
21 virtual SkSurface* getBackbufferSurface() = 0; 21 virtual SkSurface* getBackbufferSurface() = 0;
22 22
23 virtual void swapBuffers() = 0; 23 virtual void swapBuffers() = 0;
24 24
25 virtual bool makeCurrent() = 0; 25 virtual bool makeCurrent() = 0;
26 26
27 virtual bool isValid() = 0; 27 virtual bool isValid() = 0;
28 28
29 virtual void resize(uint32_t w, uint32_t h) = 0; 29 virtual void resize(uint32_t w, uint32_t h) = 0;
30 30
31 virtual bool getSRGB() = 0;
32 virtual void setSRGB(bool srgb) = 0;
33
31 virtual GrBackendContext getBackendContext() = 0; 34 virtual GrBackendContext getBackendContext() = 0;
32 }; 35 };
33 36
34 } // namespace sk_app 37 } // namespace sk_app
35 38
36 #endif 39 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698