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

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

Issue 9699048: Make Occlusion Query Sample (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make it more C++y Created 8 years, 9 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
« no previous file with comments | « gpu/demos/demos.gyp ('k') | gpu/demos/framework/window.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_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/gpu_scheduler.h" 11 #include "gpu/command_buffer/service/gpu_scheduler.h"
12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
13 #include "ui/gfx/gl/gl_context.h" 13 #include "ui/gfx/gl/gl_context.h"
14 #include "ui/gfx/gl/gl_surface.h" 14 #include "ui/gfx/gl/gl_surface.h"
15 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 18
19 class TransferBuffer; 19 class TransferBuffer;
20 20
21 namespace gles2 {
22
23 class GLES2Implementation;
24
25 } // namespace gles2
26
21 namespace demos { 27 namespace demos {
22 28
23 class Demo; 29 class Demo;
24 30
25 // Acts as a framework for standalone demos. It creates a window and delegates 31 // Acts as a framework for standalone demos. It creates a window and delegates
26 // all events to demo to perform rendering and other tasks. 32 // all events to demo to perform rendering and other tasks.
27 class Window { 33 class Window {
28 public: 34 public:
29 Window(); 35 Window();
30 virtual ~Window(); 36 virtual ~Window();
(...skipping 18 matching lines...) Expand all
49 gfx::NativeWindow window_handle_; 55 gfx::NativeWindow window_handle_;
50 scoped_ptr<Demo> demo_; 56 scoped_ptr<Demo> demo_;
51 57
52 scoped_ptr<gpu::CommandBufferService> command_buffer_; 58 scoped_ptr<gpu::CommandBufferService> command_buffer_;
53 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_; 59 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_;
54 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 60 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
55 scoped_refptr<gfx::GLContext> context_; 61 scoped_refptr<gfx::GLContext> context_;
56 scoped_refptr<gfx::GLSurface> surface_; 62 scoped_refptr<gfx::GLSurface> surface_;
57 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; 63 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_;
58 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; 64 scoped_ptr<gpu::TransferBuffer> transfer_buffer_;
65 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_implementation_;
59 66
60 DISALLOW_COPY_AND_ASSIGN(Window); 67 DISALLOW_COPY_AND_ASSIGN(Window);
61 }; 68 };
62 69
63 } // namespace demos 70 } // namespace demos
64 } // namespace gpu 71 } // namespace gpu
65 #endif // GPU_DEMOS_FRAMEWORK_WINDOW_H_ 72 #endif // GPU_DEMOS_FRAMEWORK_WINDOW_H_
66 73
OLDNEW
« no previous file with comments | « gpu/demos/demos.gyp ('k') | gpu/demos/framework/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698