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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/config/gpu_info_collector_win.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 unsigned internalformat, 85 unsigned internalformat,
86 unsigned usage) override; 86 unsigned usage) override;
87 uint32 InsertSyncPoint() override; 87 uint32 InsertSyncPoint() override;
88 uint32 InsertFutureSyncPoint() override; 88 uint32 InsertFutureSyncPoint() override;
89 void RetireSyncPoint(uint32 sync_point) override; 89 void RetireSyncPoint(uint32 sync_point) override;
90 void SignalSyncPoint(uint32 sync_point, 90 void SignalSyncPoint(uint32 sync_point,
91 const base::Closure& callback) override; 91 const base::Closure& callback) override;
92 void SignalQuery(uint32 query, const base::Closure& callback) override; 92 void SignalQuery(uint32 query, const base::Closure& callback) override;
93 void SetSurfaceVisible(bool visible) override; 93 void SetSurfaceVisible(bool visible) override;
94 uint32 CreateStreamTexture(uint32 texture_id) override; 94 uint32 CreateStreamTexture(uint32 texture_id) override;
95 void SetLock(base::Lock*) override;
95 96
96 private: 97 private:
97 EGLNativeDisplayType display_id_; 98 EGLNativeDisplayType display_id_;
98 99
99 bool is_initialized_; 100 bool is_initialized_;
100 bool create_offscreen_; 101 bool create_offscreen_;
101 int create_offscreen_width_; 102 int create_offscreen_width_;
102 int create_offscreen_height_; 103 int create_offscreen_height_;
103 104
104 scoped_ptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_; 105 scoped_ptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_;
105 scoped_ptr<gpu::CommandBufferService> command_buffer_; 106 scoped_ptr<gpu::CommandBufferService> command_buffer_;
106 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_; 107 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_;
107 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 108 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
108 scoped_refptr<gfx::GLContext> gl_context_; 109 scoped_refptr<gfx::GLContext> gl_context_;
109 scoped_refptr<gfx::GLSurface> gl_surface_; 110 scoped_refptr<gfx::GLSurface> gl_surface_;
110 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; 111 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_;
111 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; 112 scoped_ptr<gpu::TransferBuffer> transfer_buffer_;
112 113
113 // TODO(alokp): Support more than one config, surface, and context. 114 // TODO(alokp): Support more than one config, surface, and context.
114 scoped_ptr<Config> config_; 115 scoped_ptr<Config> config_;
115 scoped_ptr<Surface> surface_; 116 scoped_ptr<Surface> surface_;
116 scoped_ptr<gpu::gles2::GLES2Implementation> context_; 117 scoped_ptr<gpu::gles2::GLES2Implementation> context_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(Display); 119 DISALLOW_COPY_AND_ASSIGN(Display);
119 }; 120 };
120 121
121 } // namespace egl 122 } // namespace egl
122 123
123 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 124 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
OLDNEW
« no previous file with comments | « gpu/config/gpu_info_collector_win.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698