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

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

Issue 810273004: GPU/BLINK - WIP - TAKE 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android_webview fix Created 6 years 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
« no previous file with comments | « gpu/blink/gpu_blink_export.h ('k') | gpu/blink/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
6 #define WEBKIT_COMMON_GPU_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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "gpu/blink/gpu_blink_export.h"
13 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
14 #include "third_party/WebKit/public/platform/WebString.h" 15 #include "third_party/WebKit/public/platform/WebString.h"
15 #include "webkit/common/gpu/webkit_gpu_export.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 18
19 namespace gles2 { 19 namespace gles2 {
20 class GLES2Interface; 20 class GLES2Interface;
21 class GLES2ImplementationErrorMessageCallback; 21 class GLES2ImplementationErrorMessageCallback;
22 struct ContextCreationAttribHelper; 22 struct ContextCreationAttribHelper;
23 } 23 }
24 } 24 }
25 25
26 using blink::WebGLId; 26 using blink::WebGLId;
27 27
28 using blink::WGC3Dbyte; 28 using blink::WGC3Dbyte;
29 using blink::WGC3Dchar; 29 using blink::WGC3Dchar;
30 using blink::WGC3Denum; 30 using blink::WGC3Denum;
31 using blink::WGC3Dboolean; 31 using blink::WGC3Dboolean;
32 using blink::WGC3Dbitfield; 32 using blink::WGC3Dbitfield;
33 using blink::WGC3Dint; 33 using blink::WGC3Dint;
34 using blink::WGC3Dsizei; 34 using blink::WGC3Dsizei;
35 using blink::WGC3Duint; 35 using blink::WGC3Duint;
36 using blink::WGC3Dfloat; 36 using blink::WGC3Dfloat;
37 using blink::WGC3Dclampf; 37 using blink::WGC3Dclampf;
38 using blink::WGC3Dintptr; 38 using blink::WGC3Dintptr;
39 using blink::WGC3Dsizeiptr; 39 using blink::WGC3Dsizeiptr;
40 40
41 namespace webkit { 41 namespace gpu_blink {
42 namespace gpu {
43 42
44 class WebGraphicsContext3DErrorMessageCallback; 43 class WebGraphicsContext3DErrorMessageCallback;
45 44
46 class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl 45 class GPU_BLINK_EXPORT WebGraphicsContext3DImpl
47 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { 46 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) {
48 public: 47 public:
49 virtual ~WebGraphicsContext3DImpl(); 48 virtual ~WebGraphicsContext3DImpl();
50 49
51 //---------------------------------------------------------------------- 50 //----------------------------------------------------------------------
52 // WebGraphicsContext3D methods 51 // WebGraphicsContext3D methods
53 52
54 virtual uint32_t lastFlushID(); 53 virtual uint32_t lastFlushID();
55 54
56 virtual unsigned int insertSyncPoint(); 55 virtual unsigned int insertSyncPoint();
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 client_error_message_callback_; 600 client_error_message_callback_;
602 601
603 // Errors raised by synthesizeGLError(). 602 // Errors raised by synthesizeGLError().
604 std::vector<WGC3Denum> synthetic_errors_; 603 std::vector<WGC3Denum> synthetic_errors_;
605 604
606 ::gpu::gles2::GLES2Interface* gl_; 605 ::gpu::gles2::GLES2Interface* gl_;
607 bool lose_context_when_out_of_memory_; 606 bool lose_context_when_out_of_memory_;
608 uint32_t flush_id_; 607 uint32_t flush_id_;
609 }; 608 };
610 609
611 } // namespace gpu 610 } // namespace gpu_blink
612 } // namespace webkit
613 611
614 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ 612 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/blink/gpu_blink_export.h ('k') | gpu/blink/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698