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

Unified Diff: media/tools/shader_bench/window.h

Issue 4873002: Benchmark tool for GPU-accelerated video rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modifications from code review Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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..2754237080a3ebd92d9fd7cdd5ce0eecad267228
--- /dev/null
+++ b/media/tools/shader_bench/window.h
@@ -0,0 +1,35 @@
+// 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"
+#include "base/task.h"
+#include "gfx/native_widget_types.h"
+#include "media/tools/shader_bench/painter.h"
+
+namespace media {
+
+class Window {
tfarina 2010/11/26 15:38:16 This implementation is very similar to gpu/demos/f
vrk (LEFT CHROMIUM) 2010/11/29 18:14:41 In a word, yes :) But because they are used for pr
tfarina 2010/11/29 18:28:36 Sure :) That is what I was suggesting, it was mor
+ public:
+ Window(int width, int height);
+ virtual void Start(int limit, Task* done_task, Painter* painter);
tfarina 2010/11/26 15:38:16 Make this 3 virtual methods pure if they are alway
vrk (LEFT CHROMIUM) 2010/11/29 18:14:41 The platform-dependent Window implementations are
tfarina 2010/11/29 18:28:36 Ah, yeah. We are noting doing inheritance here :(
+ virtual void OnPaint();
+ virtual void MainLoop();
+ gfx::NativeWindow CreateNativeWindow(int width, int height);
+ gfx::PluginWindowHandle PluginWindow();
+
+ protected:
+ Task* done_task_;
+ Painter* painter_;
+ int limit_;
+ int count_;
+ bool running_;
+ gfx::NativeWindow window_handle_;
+};
tfarina 2010/11/26 15:38:16 DISALLOW_COPY_AND_ASSIGN?
vrk (LEFT CHROMIUM) 2010/11/29 18:14:41 Done.
+
+} // namespace media
+
+#endif // MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_

Powered by Google App Engine
This is Rietveld 408576698