OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ | |
6 #define MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ | |
7 | |
8 #include "base/scoped_ptr.h" | |
9 #include "base/task.h" | |
10 #include "gfx/native_widget_types.h" | |
11 #include "media/tools/shader_bench/painter.h" | |
12 | |
13 namespace media { | |
14 | |
15 class Window { | |
16 public: | |
17 Window(int width, int height); | |
18 virtual void Start(int limit, Task* done_task, Painter* painter); | |
19 virtual void OnPaint(); | |
20 virtual void MainLoop(); | |
21 gfx::NativeWindow CreateNativeWindow(int width, int height); | |
22 gfx::PluginWindowHandle PluginWindow(); | |
23 | |
24 protected: | |
25 Task* done_task_; | |
26 Painter* painter_; | |
27 int limit_; | |
28 int count_; | |
29 bool running_; | |
30 gfx::NativeWindow window_handle_; | |
31 }; | |
32 | |
33 } | |
Alpha Left Google
2010/11/19 23:33:51
// namespace media
vrk (LEFT CHROMIUM)
2010/11/24 22:01:30
Done.
| |
34 | |
35 #endif // MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ | |
OLD | NEW |