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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 class GPU_BLINK_EXPORT WebGraphicsContext3DImpl | 30 class GPU_BLINK_EXPORT WebGraphicsContext3DImpl |
31 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { | 31 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { |
32 public: | 32 public: |
33 ~WebGraphicsContext3DImpl() override; | 33 ~WebGraphicsContext3DImpl() override; |
34 | 34 |
35 //---------------------------------------------------------------------- | 35 //---------------------------------------------------------------------- |
36 // WebGraphicsContext3D methods | 36 // WebGraphicsContext3D methods |
37 | 37 |
38 uint32_t lastFlushID() override; | 38 uint32_t lastFlushID() override; |
39 | 39 |
40 blink::WGC3Duint64 insertFenceSyncCHROMIUM() override; | 40 bool insertSyncPoint(blink::WGC3Dbyte* sync_token) override; |
41 bool genSyncTokenCHROMIUM(blink::WGC3Duint64 fenceSync, | 41 void waitSyncToken(const blink::WGC3Dbyte* sync_token) override; |
42 blink::WGC3Dbyte* syncToken) override; | |
43 void waitSyncTokenCHROMIUM(const blink::WGC3Dbyte* syncToken) override; | |
44 | 42 |
45 void loseContextCHROMIUM(blink::WGC3Denum current, | 43 void loseContextCHROMIUM(blink::WGC3Denum current, |
46 blink::WGC3Denum other) override; | 44 blink::WGC3Denum other) override; |
47 | 45 |
48 void reshapeWithScaleFactor( | 46 void reshapeWithScaleFactor( |
49 int width, int height, float scale_factor) override; | 47 int width, int height, float scale_factor) override; |
50 | 48 |
51 void prepareTexture() override; | 49 void prepareTexture() override; |
52 void postSubBufferCHROMIUM(int x, int y, int width, int height) override; | 50 void postSubBufferCHROMIUM(int x, int y, int width, int height) override; |
53 | 51 |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 std::vector<blink::WGC3Denum> synthetic_errors_; | 969 std::vector<blink::WGC3Denum> synthetic_errors_; |
972 | 970 |
973 ::gpu::gles2::GLES2Interface* gl_; | 971 ::gpu::gles2::GLES2Interface* gl_; |
974 bool lose_context_when_out_of_memory_; | 972 bool lose_context_when_out_of_memory_; |
975 uint32_t flush_id_; | 973 uint32_t flush_id_; |
976 }; | 974 }; |
977 | 975 |
978 } // namespace gpu_blink | 976 } // namespace gpu_blink |
979 | 977 |
980 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 978 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |