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 20 matching lines...) Expand all Loading... |
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 unsigned int insertSyncPoint() override; | 40 unsigned int insertSyncPoint() override; |
41 void waitSyncPoint(unsigned int sync_point) override; | 41 void waitSyncPoint(unsigned int sync_point, |
| 42 const blink::WGC3Dbyte* sync_token) override; |
42 | 43 |
43 void loseContextCHROMIUM(blink::WGC3Denum current, | 44 void loseContextCHROMIUM(blink::WGC3Denum current, |
44 blink::WGC3Denum other) override; | 45 blink::WGC3Denum other) override; |
45 | 46 |
46 void reshapeWithScaleFactor( | 47 void reshapeWithScaleFactor( |
47 int width, int height, float scale_factor) override; | 48 int width, int height, float scale_factor) override; |
48 | 49 |
49 void prepareTexture() override; | 50 void prepareTexture() override; |
50 void postSubBufferCHROMIUM(int x, int y, int width, int height) override; | 51 void postSubBufferCHROMIUM(int x, int y, int width, int height) override; |
51 | 52 |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 std::vector<blink::WGC3Denum> synthetic_errors_; | 972 std::vector<blink::WGC3Denum> synthetic_errors_; |
972 | 973 |
973 ::gpu::gles2::GLES2Interface* gl_; | 974 ::gpu::gles2::GLES2Interface* gl_; |
974 bool lose_context_when_out_of_memory_; | 975 bool lose_context_when_out_of_memory_; |
975 uint32_t flush_id_; | 976 uint32_t flush_id_; |
976 }; | 977 }; |
977 | 978 |
978 } // namespace gpu_blink | 979 } // namespace gpu_blink |
979 | 980 |
980 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 981 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |