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

Side by Side Diff: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 1882503002: Remove setErrorMessageCallback from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@errorcallback
Patch Set: weberrors: owned 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/webgraphicscontext3d_impl.cc ('k') | gpu/command_buffer/client/context_support.h » ('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 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" 5 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <utility> 8 #include <utility>
9 #ifndef GL_GLEXT_PROTOTYPES 9 #ifndef GL_GLEXT_PROTOTYPES
10 #define GL_GLEXT_PROTOTYPES 1 10 #define GL_GLEXT_PROTOTYPES 1
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const gpu::gles2::ContextCreationAttribHelper& attributes, 57 const gpu::gles2::ContextCreationAttribHelper& attributes,
58 bool is_offscreen, 58 bool is_offscreen,
59 gfx::AcceleratedWidget window) 59 gfx::AcceleratedWidget window)
60 : attributes_(attributes), 60 : attributes_(attributes),
61 is_offscreen_(is_offscreen), 61 is_offscreen_(is_offscreen),
62 window_(window), 62 window_(window),
63 context_(std::move(context)) {} 63 context_(std::move(context)) {}
64 64
65 WebGraphicsContext3DInProcessCommandBufferImpl:: 65 WebGraphicsContext3DInProcessCommandBufferImpl::
66 ~WebGraphicsContext3DInProcessCommandBufferImpl() { 66 ~WebGraphicsContext3DInProcessCommandBufferImpl() {
67 if (real_gl_) { 67 if (real_gl_)
68 real_gl_->SetErrorMessageCallback(
69 base::Callback<void(const char*, int32_t)>());
70 real_gl_->SetLostContextCallback(base::Closure()); 68 real_gl_->SetLostContextCallback(base::Closure());
71 }
72 } 69 }
73 70
74 size_t WebGraphicsContext3DInProcessCommandBufferImpl::GetMappedMemoryLimit() { 71 size_t WebGraphicsContext3DInProcessCommandBufferImpl::GetMappedMemoryLimit() {
75 return context_->GetMappedMemoryLimit(); 72 return context_->GetMappedMemoryLimit();
76 } 73 }
77 74
78 bool WebGraphicsContext3DInProcessCommandBufferImpl::MaybeInitializeGL() { 75 bool WebGraphicsContext3DInProcessCommandBufferImpl::MaybeInitializeGL() {
79 if (initialized_) 76 if (initialized_)
80 return true; 77 return true;
81 78
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void WebGraphicsContext3DInProcessCommandBufferImpl::SetLock(base::Lock* lock) { 121 void WebGraphicsContext3DInProcessCommandBufferImpl::SetLock(base::Lock* lock) {
125 context_->SetLock(lock); 122 context_->SetLock(lock);
126 } 123 }
127 124
128 ::gpu::ContextSupport* 125 ::gpu::ContextSupport*
129 WebGraphicsContext3DInProcessCommandBufferImpl::GetContextSupport() { 126 WebGraphicsContext3DInProcessCommandBufferImpl::GetContextSupport() {
130 return real_gl_; 127 return real_gl_;
131 } 128 }
132 129
133 } // namespace gpu_blink 130 } // namespace gpu_blink
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.cc ('k') | gpu/command_buffer/client/context_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698