Chromium Code Reviews| 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" | |
|
tfarina
2010/11/29 18:28:36
It seems you are not using this include here.
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
| |
| 9 #include "base/task.h" | |
|
tfarina
2010/11/29 18:28:36
If I'm not wrong, it can be possible to forward de
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
| |
| 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); | |
|
tfarina
2010/11/29 18:28:36
For readability, could you add a blank line betwee
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
| |
| 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 protected: | |
|
tfarina
2010/11/29 18:28:36
Please, left the blank line above protected, same
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
| |
| 24 Task* done_task_; | |
| 25 Painter* painter_; | |
| 26 int limit_; | |
| 27 int count_; | |
| 28 bool running_; | |
| 29 gfx::NativeWindow window_handle_; | |
| 30 private: | |
|
Alpha Left Google
2010/11/29 20:06:13
Empty line above this. Each section should have an
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
| |
| 31 DISALLOW_COPY_AND_ASSIGN(Window); | |
| 32 }; | |
| 33 | |
| 34 } // namespace media | |
| 35 | |
| 36 #endif // MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ | |
| OLD | NEW |