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

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

Issue 1907783002: Delete //gpu/blink/ and WebGraphicsContext3DImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-webgraphicscontext3dimpl: noflush Created 4 years, 8 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
7
8 #include <stdint.h>
9
10 #include <memory>
11 #include <string>
12 #include <vector>
13
14 #include "base/callback.h"
15 #include "gpu/blink/gpu_blink_export.h"
16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
17 #include "third_party/WebKit/public/platform/WebString.h"
18
19 namespace gpu {
20
21 namespace gles2 {
22 class GLES2Interface;
23 struct ContextCreationAttribHelper;
24 }
25 }
26
27 namespace gpu_blink {
28
29 class GPU_BLINK_EXPORT WebGraphicsContext3DImpl
30 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) {
31 public:
32 ~WebGraphicsContext3DImpl() override;
33
34 //----------------------------------------------------------------------
35 // WebGraphicsContext3D methods
36
37 void setContextLostCallback(
38 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback);
39
40 ::gpu::gles2::GLES2Interface* GetGLInterface() {
41 return gl_;
42 }
43
44 protected:
45 WebGraphicsContext3DImpl();
46
47 void SetGLInterface(::gpu::gles2::GLES2Interface* gl) { gl_ = gl; }
48
49 bool initialized_;
50 bool initialize_failed_;
51
52 WebGraphicsContextLostCallback* context_lost_callback_;
53
54 ::gpu::gles2::GLES2Interface* gl_;
55 bool lose_context_when_out_of_memory_;
56 };
57
58 } // namespace gpu_blink
59
60 #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