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

Side by Side Diff: gpu/demos/framework/window.h

Issue 10441140: Make context groups share a TextureBufferManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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_DEMOS_FRAMEWORK_WINDOW_H_ 5 #ifndef GPU_DEMOS_FRAMEWORK_WINDOW_H_
6 #define GPU_DEMOS_FRAMEWORK_WINDOW_H_ 6 #define GPU_DEMOS_FRAMEWORK_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 9 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
10 #include "gpu/command_buffer/service/command_buffer_service.h" 10 #include "gpu/command_buffer/service/command_buffer_service.h"
11 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 11 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
12 #include "gpu/command_buffer/service/gpu_scheduler.h" 12 #include "gpu/command_buffer/service/gpu_scheduler.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/gl/gl_context.h" 14 #include "ui/gl/gl_context.h"
15 #include "ui/gl/gl_surface.h" 15 #include "ui/gl/gl_surface.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 18
19 class TransferBuffer; 19 class TransferBuffer;
20 class TransferBufferManagerInterface;
20 21
21 namespace gles2 { 22 namespace gles2 {
22 23
23 class GLES2Implementation; 24 class GLES2Implementation;
24 25
25 } // namespace gles2 26 } // namespace gles2
26 27
27 namespace demos { 28 namespace demos {
28 29
29 class Demo; 30 class Demo;
(...skipping 18 matching lines...) Expand all
48 gfx::NativeWindow CreateNativeWindow(const wchar_t* title, 49 gfx::NativeWindow CreateNativeWindow(const wchar_t* title,
49 int width, int height); 50 int width, int height);
50 // Converts native window handle to NPAPI plugin window handle. 51 // Converts native window handle to NPAPI plugin window handle.
51 gfx::AcceleratedWidget PluginWindow(gfx::NativeWindow hwnd); 52 gfx::AcceleratedWidget PluginWindow(gfx::NativeWindow hwnd);
52 // Creates an OpenGL ES 2.0 rendering context for the given window. 53 // Creates an OpenGL ES 2.0 rendering context for the given window.
53 bool CreateRenderContext(gfx::AcceleratedWidget hwnd); 54 bool CreateRenderContext(gfx::AcceleratedWidget hwnd);
54 55
55 gfx::NativeWindow window_handle_; 56 gfx::NativeWindow window_handle_;
56 scoped_ptr<Demo> demo_; 57 scoped_ptr<Demo> demo_;
57 58
59 scoped_ptr<TransferBufferManagerInterface> transfer_buffer_manager_;
58 scoped_ptr<gpu::CommandBufferService> command_buffer_; 60 scoped_ptr<gpu::CommandBufferService> command_buffer_;
59 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_; 61 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_;
60 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 62 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
61 scoped_refptr<gfx::GLContext> context_; 63 scoped_refptr<gfx::GLContext> context_;
62 scoped_refptr<gfx::GLSurface> surface_; 64 scoped_refptr<gfx::GLSurface> surface_;
63 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; 65 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_;
64 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; 66 scoped_ptr<gpu::TransferBuffer> transfer_buffer_;
65 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_implementation_; 67 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_implementation_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(Window); 69 DISALLOW_COPY_AND_ASSIGN(Window);
68 }; 70 };
69 71
70 } // namespace demos 72 } // namespace demos
71 } // namespace gpu 73 } // namespace gpu
72 #endif // GPU_DEMOS_FRAMEWORK_WINDOW_H_ 74 #endif // GPU_DEMOS_FRAMEWORK_WINDOW_H_
73 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698