OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 21 matching lines...) Expand all Loading... |
32 class GPU_BLINK_EXPORT WebGraphicsContext3DImpl | 32 class GPU_BLINK_EXPORT WebGraphicsContext3DImpl |
33 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { | 33 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { |
34 public: | 34 public: |
35 ~WebGraphicsContext3DImpl() override; | 35 ~WebGraphicsContext3DImpl() override; |
36 | 36 |
37 //---------------------------------------------------------------------- | 37 //---------------------------------------------------------------------- |
38 // WebGraphicsContext3D methods | 38 // WebGraphicsContext3D methods |
39 | 39 |
40 uint32_t lastFlushID() override; | 40 uint32_t lastFlushID() override; |
41 | 41 |
42 bool insertSyncPoint(blink::WGC3Dbyte* sync_token) override; | |
43 blink::WGC3Duint64 insertFenceSyncCHROMIUM() override; | 42 blink::WGC3Duint64 insertFenceSyncCHROMIUM() override; |
44 bool genSyncTokenCHROMIUM(blink::WGC3Duint64 fenceSync, | 43 bool genSyncTokenCHROMIUM(blink::WGC3Duint64 fenceSync, |
45 blink::WGC3Dbyte* syncToken) override; | 44 blink::WGC3Dbyte* syncToken) override; |
46 void waitSyncTokenCHROMIUM(const blink::WGC3Dbyte* syncToken) override; | 45 void waitSyncTokenCHROMIUM(const blink::WGC3Dbyte* syncToken) override; |
47 | 46 |
48 void loseContextCHROMIUM(blink::WGC3Denum current, | 47 void loseContextCHROMIUM(blink::WGC3Denum current, |
49 blink::WGC3Denum other) override; | 48 blink::WGC3Denum other) override; |
50 | 49 |
51 void reshapeWithScaleFactor( | 50 void reshapeWithScaleFactor( |
52 int width, int height, float scale_factor) override; | 51 int width, int height, float scale_factor) override; |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 std::vector<blink::WGC3Denum> synthetic_errors_; | 977 std::vector<blink::WGC3Denum> synthetic_errors_; |
979 | 978 |
980 ::gpu::gles2::GLES2Interface* gl_; | 979 ::gpu::gles2::GLES2Interface* gl_; |
981 bool lose_context_when_out_of_memory_; | 980 bool lose_context_when_out_of_memory_; |
982 uint32_t flush_id_; | 981 uint32_t flush_id_; |
983 }; | 982 }; |
984 | 983 |
985 } // namespace gpu_blink | 984 } // namespace gpu_blink |
986 | 985 |
987 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 986 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |