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

Side by Side 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: Added more shaders, used message loop, and cleaned up code 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698