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

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

Issue 2169543002: Use Windowing system-specific WindowContext factories. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: more xlib 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/GLWindowContext.cpp ('k') | tools/viewer/sk_app/VulkanWindowContext.h » ('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 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef RasterWindowContext_DEFINED 8 #ifndef RasterWindowContext_DEFINED
9 #define RasterWindowContext_DEFINED 9 #define RasterWindowContext_DEFINED
10 10
11 #include "WindowContext.h" 11 #include "WindowContext.h"
12 12
13 namespace sk_app { 13 namespace sk_app {
14 14
15 class RasterWindowContext : public WindowContext { 15 class RasterWindowContext : public WindowContext {
16 public: 16 public:
17 // This is defined in the platform .cpp file
18 static RasterWindowContext* Create(void* platformData, const DisplayParams& params);
19
20 // Explicitly convert nullptr to GrBackendContext is needed for compiling 17 // Explicitly convert nullptr to GrBackendContext is needed for compiling
21 GrBackendContext getBackendContext() override { return (GrBackendContext) nu llptr; } 18 GrBackendContext getBackendContext() override { return (GrBackendContext) nu llptr; }
22 19
23 protected: 20 protected:
24 bool isGpuContext() override { return false; } 21 bool isGpuContext() override { return false; }
25 }; 22 };
26 23
27 } // namespace sk_app 24 } // namespace sk_app
28 25
29 #endif 26 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/GLWindowContext.cpp ('k') | tools/viewer/sk_app/VulkanWindowContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698