OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 : alpha(true) | 87 : alpha(true) |
88 , depth(true) | 88 , depth(true) |
89 , stencil(true) | 89 , stencil(true) |
90 , antialias(true) | 90 , antialias(true) |
91 , premultipliedAlpha(true) | 91 , premultipliedAlpha(true) |
92 , canRecoverFromContextLoss(true) | 92 , canRecoverFromContextLoss(true) |
93 , noExtensions(false) | 93 , noExtensions(false) |
94 , shareResources(true) | 94 , shareResources(true) |
95 , preferDiscreteGPU(false) | 95 , preferDiscreteGPU(false) |
96 , noAutomaticFlushes(false) | 96 , noAutomaticFlushes(false) |
| 97 , useVirtualContext(false) |
97 { | 98 { |
98 } | 99 } |
99 | 100 |
100 bool alpha; | 101 bool alpha; |
101 bool depth; | 102 bool depth; |
102 bool stencil; | 103 bool stencil; |
103 bool antialias; | 104 bool antialias; |
104 bool premultipliedAlpha; | 105 bool premultipliedAlpha; |
105 bool canRecoverFromContextLoss; | 106 bool canRecoverFromContextLoss; |
106 bool noExtensions; | 107 bool noExtensions; |
107 bool shareResources; | 108 bool shareResources; |
108 bool preferDiscreteGPU; | 109 bool preferDiscreteGPU; |
109 bool noAutomaticFlushes; | 110 bool noAutomaticFlushes; |
| 111 bool useVirtualContext; |
110 // FIXME: ideally this would be a WebURL, but it is currently not | 112 // FIXME: ideally this would be a WebURL, but it is currently not |
111 // possible to pass a WebURL by value across the WebKit API boundary. | 113 // possible to pass a WebURL by value across the WebKit API boundary. |
112 // See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 . | 114 // See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 . |
113 WebString topDocumentURL; | 115 WebString topDocumentURL; |
114 }; | 116 }; |
115 | 117 |
116 class WebGraphicsContextLostCallback { | 118 class WebGraphicsContextLostCallback { |
117 public: | 119 public: |
118 virtual void onContextLost() = 0; | 120 virtual void onContextLost() = 0; |
119 | 121 |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 virtual GrGLInterface* createGrGLInterface() { return onCreateGrGLInterface(
); } | 483 virtual GrGLInterface* createGrGLInterface() { return onCreateGrGLInterface(
); } |
482 | 484 |
483 protected: | 485 protected: |
484 virtual GrGLInterface* onCreateGrGLInterface() { return 0; } | 486 virtual GrGLInterface* onCreateGrGLInterface() { return 0; } |
485 | 487 |
486 }; | 488 }; |
487 | 489 |
488 } // namespace WebKit | 490 } // namespace WebKit |
489 | 491 |
490 #endif | 492 #endif |
OLD | NEW |