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

Side by Side Diff: gpu/blink/webgraphicscontext3d_impl.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Folded sync_point into sync_tokens Created 5 years, 1 month 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
OLDNEW
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
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 unsigned int insertSyncPoint() override; 40 bool insertSyncPoint(blink::WGC3Dbyte* sync_token) override;
41 void waitSyncPoint(unsigned int sync_point) override; 41 void waitSyncToken(const blink::WGC3Dbyte* sync_token) override;
42 42
43 void loseContextCHROMIUM(blink::WGC3Denum current, 43 void loseContextCHROMIUM(blink::WGC3Denum current,
44 blink::WGC3Denum other) override; 44 blink::WGC3Denum other) override;
45 45
46 void reshapeWithScaleFactor( 46 void reshapeWithScaleFactor(
47 int width, int height, float scale_factor) override; 47 int width, int height, float scale_factor) override;
48 48
49 void prepareTexture() override; 49 void prepareTexture() override;
50 void postSubBufferCHROMIUM(int x, int y, int width, int height) override; 50 void postSubBufferCHROMIUM(int x, int y, int width, int height) override;
51 51
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 std::vector<blink::WGC3Denum> synthetic_errors_; 971 std::vector<blink::WGC3Denum> synthetic_errors_;
972 972
973 ::gpu::gles2::GLES2Interface* gl_; 973 ::gpu::gles2::GLES2Interface* gl_;
974 bool lose_context_when_out_of_memory_; 974 bool lose_context_when_out_of_memory_;
975 uint32_t flush_id_; 975 uint32_t flush_id_;
976 }; 976 };
977 977
978 } // namespace gpu_blink 978 } // namespace gpu_blink
979 979
980 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ 980 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698