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

Side by Side Diff: gpu/command_buffer/service/gl_context_virtual.h

Issue 1420533009: Cleanup GpuMemoryManager and helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup. Created 5 years, 1 month 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/content_tests.gypi ('k') | gpu/command_buffer/service/gl_context_virtual.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_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 // Implement GLContext. 36 // Implement GLContext.
37 bool Initialize(gfx::GLSurface* compatible_surface, 37 bool Initialize(gfx::GLSurface* compatible_surface,
38 gfx::GpuPreference gpu_preference) override; 38 gfx::GpuPreference gpu_preference) override;
39 bool MakeCurrent(gfx::GLSurface* surface) override; 39 bool MakeCurrent(gfx::GLSurface* surface) override;
40 void ReleaseCurrent(gfx::GLSurface* surface) override; 40 void ReleaseCurrent(gfx::GLSurface* surface) override;
41 bool IsCurrent(gfx::GLSurface* surface) override; 41 bool IsCurrent(gfx::GLSurface* surface) override;
42 void* GetHandle() override; 42 void* GetHandle() override;
43 scoped_refptr<gfx::GPUTimingClient> CreateGPUTimingClient() override; 43 scoped_refptr<gfx::GPUTimingClient> CreateGPUTimingClient() override;
44 void OnSetSwapInterval(int interval) override; 44 void OnSetSwapInterval(int interval) override;
45 std::string GetExtensions() override; 45 std::string GetExtensions() override;
46 bool GetTotalGpuMemory(size_t* bytes) override;
47 void SetSafeToForceGpuSwitch() override; 46 void SetSafeToForceGpuSwitch() override;
48 bool WasAllocatedUsingRobustnessExtension() override; 47 bool WasAllocatedUsingRobustnessExtension() override;
49 void SetUnbindFboOnMakeCurrent() override; 48 void SetUnbindFboOnMakeCurrent() override;
50 base::Closure GetStateWasDirtiedExternallyCallback() override; 49 base::Closure GetStateWasDirtiedExternallyCallback() override;
51 void RestoreStateIfDirtiedExternally() override; 50 void RestoreStateIfDirtiedExternally() override;
52 51
53 protected: 52 protected:
54 ~GLContextVirtual() override; 53 ~GLContextVirtual() override;
55 54
56 private: 55 private:
57 void Destroy(); 56 void Destroy();
58 57
59 scoped_refptr<gfx::GLContext> shared_context_; 58 scoped_refptr<gfx::GLContext> shared_context_;
60 base::WeakPtr<gles2::GLES2Decoder> decoder_; 59 base::WeakPtr<gles2::GLES2Decoder> decoder_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(GLContextVirtual); 61 DISALLOW_COPY_AND_ASSIGN(GLContextVirtual);
63 }; 62 };
64 63
65 } // namespace gpu 64 } // namespace gpu
66 65
67 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ 66 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | gpu/command_buffer/service/gl_context_virtual.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698