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

Side by Side Diff: dm/DMGpuSupport.h

Issue 1492633007: Revert of Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « no previous file | dm/DMSrcSink.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 DMGpuSupport_DEFINED 8 #ifndef DMGpuSupport_DEFINED
9 #define DMGpuSupport_DEFINED 9 #define DMGpuSupport_DEFINED
10 10
11 // Provides Ganesh to DM, 11 // Provides Ganesh to DM,
12 // or if it's not available, fakes it enough so most code doesn't have to know t hat. 12 // or if it's not available, fakes it enough so most code doesn't have to know t hat.
13 13
14 #include "SkSurface.h" 14 #include "SkSurface.h"
15 15
16 // This should be safe to include even in no-gpu builds. Include by relative pat h so it
17 // can be found in non-gpu builds.
18 #include "../include/gpu/GrContextOptions.h"
19
20 #if SK_SUPPORT_GPU 16 #if SK_SUPPORT_GPU
21 17
22 // Ganesh is available. Yippee! 18 // Ganesh is available. Yippee!
23 19
24 # include "GrContext.h" 20 # include "GrContext.h"
25 # include "GrContextFactory.h" 21 # include "GrContextFactory.h"
26 22
27 namespace DM { 23 namespace DM {
28 24
29 static const bool kGPUDisabled = false; 25 static const bool kGPUDisabled = false;
(...skipping 22 matching lines...) Expand all
52 kGLES_GrGLStandard 48 kGLES_GrGLStandard
53 }; 49 };
54 static const int kGrGLStandardCnt = 3; 50 static const int kGrGLStandardCnt = 3;
55 51
56 class GrContext { 52 class GrContext {
57 public: 53 public:
58 void dumpCacheStats(SkString*) const {} 54 void dumpCacheStats(SkString*) const {}
59 void dumpGpuStats(SkString*) const {} 55 void dumpGpuStats(SkString*) const {}
60 }; 56 };
61 57
58 struct GrContextOptions {
59 bool fImmediateMode;
60 bool fClipBatchToBounds;
61 };
62
62 class GrContextFactory { 63 class GrContextFactory {
63 public: 64 public:
64 GrContextFactory() {}; 65 GrContextFactory() {};
65 explicit GrContextFactory(const GrContextOptions&) {} 66 explicit GrContextFactory(const GrContextOptions&) {}
66 67
67 typedef int GLContextType; 68 typedef int GLContextType;
68 69
69 static const GLContextType kANGLE_GLContextType = 0, 70 static const GLContextType kANGLE_GLContextType = 0,
70 kANGLE_GL_GLContextType = 0, 71 kANGLE_GL_GLContextType = 0,
71 kCommandBuffer_GLContextType = 0, 72 kCommandBuffer_GLContextType = 0,
(...skipping 19 matching lines...) Expand all
91 int, 92 int,
92 bool) { 93 bool) {
93 return nullptr; 94 return nullptr;
94 } 95 }
95 96
96 } // namespace DM 97 } // namespace DM
97 98
98 #endif//SK_SUPPORT_GPU 99 #endif//SK_SUPPORT_GPU
99 100
100 #endif//DMGpuSupport_DEFINED 101 #endif//DMGpuSupport_DEFINED
OLDNEW
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698