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

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

Issue 1885903002: Revert of Make lost context and error message callbacks on GpuControl go to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 ::gpu::gles2::GLES2Interface* GetGLInterface() { 46 ::gpu::gles2::GLES2Interface* GetGLInterface() {
47 return gl_; 47 return gl_;
48 } 48 }
49 49
50 protected: 50 protected:
51 friend class WebGraphicsContext3DErrorMessageCallback; 51 friend class WebGraphicsContext3DErrorMessageCallback;
52 52
53 WebGraphicsContext3DImpl(); 53 WebGraphicsContext3DImpl();
54 54
55 ::gpu::gles2::GLES2ImplementationErrorMessageCallback*
56 getErrorMessageCallback();
57 virtual void OnErrorMessage(const std::string& message, int id);
58
55 void SetGLInterface(::gpu::gles2::GLES2Interface* gl) { gl_ = gl; } 59 void SetGLInterface(::gpu::gles2::GLES2Interface* gl) { gl_ = gl; }
56 60
57 bool initialized_; 61 bool initialized_;
58 bool initialize_failed_; 62 bool initialize_failed_;
59 63
60 WebGraphicsContextLostCallback* context_lost_callback_; 64 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_;
61 WebGraphicsErrorMessageCallback* error_message_callback_; 65
66 WebGraphicsContext3D::WebGraphicsErrorMessageCallback*
67 error_message_callback_;
68 scoped_ptr<WebGraphicsContext3DErrorMessageCallback>
69 client_error_message_callback_;
62 70
63 ::gpu::gles2::GLES2Interface* gl_; 71 ::gpu::gles2::GLES2Interface* gl_;
64 bool lose_context_when_out_of_memory_; 72 bool lose_context_when_out_of_memory_;
65 }; 73 };
66 74
67 } // namespace gpu_blink 75 } // namespace gpu_blink
68 76
69 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ 77 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | gpu/blink/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698