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

Side by Side Diff: gpu/gles2_conform_support/egl/display.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/display.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_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 5 #ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
7 7
8 #include <EGL/egl.h> 8 #include <EGL/egl.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Context routines. 68 // Context routines.
69 bool IsValidContext(EGLContext ctx); 69 bool IsValidContext(EGLContext ctx);
70 EGLContext CreateContext(EGLConfig config, 70 EGLContext CreateContext(EGLConfig config,
71 EGLContext share_ctx, 71 EGLContext share_ctx,
72 const EGLint* attrib_list); 72 const EGLint* attrib_list);
73 void DestroyContext(EGLContext ctx); 73 void DestroyContext(EGLContext ctx);
74 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx); 74 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx);
75 75
76 // GpuControl implementation. 76 // GpuControl implementation.
77 virtual gpu::Capabilities GetCapabilities() override; 77 virtual gpu::Capabilities GetCapabilities() override;
78 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, 78 virtual int32_t CreateImage(ClientBuffer buffer,
79 size_t height, 79 size_t width,
80 unsigned internalformat, 80 size_t height,
81 unsigned usage, 81 unsigned internalformat) override;
82 int32* id) override; 82 virtual void DestroyImage(int32_t id) override;
83 virtual void DestroyGpuMemoryBuffer(int32 id) override; 83 virtual int32_t CreateGpuMemoryBufferImage(size_t width,
84 size_t height,
85 unsigned internalformat,
86 unsigned usage) override;
84 virtual uint32 InsertSyncPoint() override; 87 virtual uint32 InsertSyncPoint() override;
85 virtual uint32 InsertFutureSyncPoint() override; 88 virtual uint32 InsertFutureSyncPoint() override;
86 virtual void RetireSyncPoint(uint32 sync_point) override; 89 virtual void RetireSyncPoint(uint32 sync_point) override;
87 virtual void SignalSyncPoint(uint32 sync_point, 90 virtual void SignalSyncPoint(uint32 sync_point,
88 const base::Closure& callback) override; 91 const base::Closure& callback) override;
89 virtual void SignalQuery(uint32 query, 92 virtual void SignalQuery(uint32 query,
90 const base::Closure& callback) override; 93 const base::Closure& callback) override;
91 virtual void SetSurfaceVisible(bool visible) override; 94 virtual void SetSurfaceVisible(bool visible) override;
92 virtual uint32 CreateStreamTexture(uint32 texture_id) override; 95 virtual uint32 CreateStreamTexture(uint32 texture_id) override;
93 96
(...skipping 18 matching lines...) Expand all
112 scoped_ptr<Config> config_; 115 scoped_ptr<Config> config_;
113 scoped_ptr<Surface> surface_; 116 scoped_ptr<Surface> surface_;
114 scoped_ptr<gpu::gles2::GLES2Implementation> context_; 117 scoped_ptr<gpu::gles2::GLES2Implementation> context_;
115 118
116 DISALLOW_COPY_AND_ASSIGN(Display); 119 DISALLOW_COPY_AND_ASSIGN(Display);
117 }; 120 };
118 121
119 } // namespace egl 122 } // namespace egl
120 123
121 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 124 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698