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

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

Issue 1311583006: Revert of Add command_buffer_gles2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/BUILD.gn ('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 12 matching lines...) Expand all
23 class GpuScheduler; 23 class GpuScheduler;
24 class TransferBuffer; 24 class TransferBuffer;
25 class TransferBufferManagerInterface; 25 class TransferBufferManagerInterface;
26 26
27 namespace gles2 { 27 namespace gles2 {
28 class GLES2CmdHelper; 28 class GLES2CmdHelper;
29 class GLES2Implementation; 29 class GLES2Implementation;
30 } // namespace gles2 30 } // namespace gles2
31 } // namespace gpu 31 } // namespace gpu
32 32
33 namespace base {
34 class AtExitManager;
35 } // namespace base
36
37 namespace egl { 33 namespace egl {
38 34
39 class Config; 35 class Config;
40 class Surface; 36 class Surface;
41 37
42 class Display : private gpu::GpuControl { 38 class Display : private gpu::GpuControl {
43 public: 39 public:
44 explicit Display(EGLNativeDisplayType display_id); 40 explicit Display(EGLNativeDisplayType display_id);
45 ~Display() override; 41 ~Display() override;
46 42
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void SignalQuery(uint32 query, const base::Closure& callback) override; 92 void SignalQuery(uint32 query, const base::Closure& callback) override;
97 void SetSurfaceVisible(bool visible) override; 93 void SetSurfaceVisible(bool visible) override;
98 uint32 CreateStreamTexture(uint32 texture_id) override; 94 uint32 CreateStreamTexture(uint32 texture_id) override;
99 void SetLock(base::Lock*) override; 95 void SetLock(base::Lock*) override;
100 bool IsGpuChannelLost() override; 96 bool IsGpuChannelLost() override;
101 97
102 private: 98 private:
103 EGLNativeDisplayType display_id_; 99 EGLNativeDisplayType display_id_;
104 100
105 bool is_initialized_; 101 bool is_initialized_;
106
107 // elg::Display is used for comformance tests and command_buffer_gles. We can't
108 // include the exit manager for the conformance tests.
109 // TODO(hendrikw): Find a cleaner solution for this.
110 #if !defined(GLES2_CONFORM_SUPPORT_ONLY)
111 scoped_ptr<base::AtExitManager> exit_manager_;
112 #endif // !GLES2_CONFORM_SUPPORT_ONLY
113
114 bool create_offscreen_; 102 bool create_offscreen_;
115 int create_offscreen_width_; 103 int create_offscreen_width_;
116 int create_offscreen_height_; 104 int create_offscreen_height_;
117 105
118 scoped_refptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_; 106 scoped_refptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_;
119 scoped_ptr<gpu::CommandBufferService> command_buffer_; 107 scoped_ptr<gpu::CommandBufferService> command_buffer_;
120 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_; 108 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_;
121 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 109 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
122 scoped_refptr<gfx::GLContext> gl_context_; 110 scoped_refptr<gfx::GLContext> gl_context_;
123 scoped_refptr<gfx::GLSurface> gl_surface_; 111 scoped_refptr<gfx::GLSurface> gl_surface_;
124 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; 112 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_;
125 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; 113 scoped_ptr<gpu::TransferBuffer> transfer_buffer_;
126 114
127 // TODO(alokp): Support more than one config, surface, and context. 115 // TODO(alokp): Support more than one config, surface, and context.
128 scoped_ptr<Config> config_; 116 scoped_ptr<Config> config_;
129 scoped_ptr<Surface> surface_; 117 scoped_ptr<Surface> surface_;
130 scoped_ptr<gpu::gles2::GLES2Implementation> context_; 118 scoped_ptr<gpu::gles2::GLES2Implementation> context_;
131 119
132 DISALLOW_COPY_AND_ASSIGN(Display); 120 DISALLOW_COPY_AND_ASSIGN(Display);
133 }; 121 };
134 122
135 } // namespace egl 123 } // namespace egl
136 124
137 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 125 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698