Index: media/tools/shader_bench/window.h |
diff --git a/media/tools/shader_bench/window.h b/media/tools/shader_bench/window.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..46161fda34535f737b9f7d3b0cc25148a44bbf8b |
--- /dev/null |
+++ b/media/tools/shader_bench/window.h |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ |
+#define MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ |
+ |
+#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.
|
+#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.
|
+#include "gfx/native_widget_types.h" |
+#include "media/tools/shader_bench/painter.h" |
+ |
+namespace media { |
+ |
+class Window { |
+ public: |
+ 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.
|
+ virtual void Start(int limit, Task* done_task, Painter* painter); |
+ virtual void OnPaint(); |
+ virtual void MainLoop(); |
+ gfx::NativeWindow CreateNativeWindow(int width, int height); |
+ gfx::PluginWindowHandle PluginWindow(); |
+ 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.
|
+ Task* done_task_; |
+ Painter* painter_; |
+ int limit_; |
+ int count_; |
+ bool running_; |
+ gfx::NativeWindow window_handle_; |
+ 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.
|
+ DISALLOW_COPY_AND_ASSIGN(Window); |
+}; |
+ |
+} // namespace media |
+ |
+#endif // MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ |