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

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

Issue 1235203003: WIP cc: remove unused and legacy GetMappedMemoryLimit code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const blink::WebGraphicsContext3D::Attributes& attributes, 47 const blink::WebGraphicsContext3D::Attributes& attributes,
48 bool lose_context_when_out_of_memory); 48 bool lose_context_when_out_of_memory);
49 49
50 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> 50 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
51 WrapContext( 51 WrapContext(
52 scoped_ptr< ::gpu::GLInProcessContext> context, 52 scoped_ptr< ::gpu::GLInProcessContext> context,
53 const blink::WebGraphicsContext3D::Attributes& attributes); 53 const blink::WebGraphicsContext3D::Attributes& attributes);
54 54
55 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); 55 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
56 56
57 size_t GetMappedMemoryLimit();
58
59 bool InitializeOnCurrentThread(); 57 bool InitializeOnCurrentThread();
60 void SetLock(base::Lock* lock); 58 void SetLock(base::Lock* lock);
61 59
62 ::gpu::ContextSupport* GetContextSupport(); 60 ::gpu::ContextSupport* GetContextSupport();
63 61
64 ::gpu::gles2::GLES2Implementation* GetImplementation() { 62 ::gpu::gles2::GLES2Implementation* GetImplementation() {
65 return real_gl_; 63 return real_gl_;
66 } 64 }
67 65
68 private: 66 private:
(...skipping 21 matching lines...) Expand all
90 88
91 // The context we use for OpenGL rendering. 89 // The context we use for OpenGL rendering.
92 scoped_ptr< ::gpu::GLInProcessContext> context_; 90 scoped_ptr< ::gpu::GLInProcessContext> context_;
93 // The GLES2Implementation we use for OpenGL rendering. 91 // The GLES2Implementation we use for OpenGL rendering.
94 ::gpu::gles2::GLES2Implementation* real_gl_; 92 ::gpu::gles2::GLES2Implementation* real_gl_;
95 }; 93 };
96 94
97 } // namespace gpu_blink 95 } // namespace gpu_blink
98 96
99 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 97 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698