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

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: Modifications from code review Created 10 years 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 {
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
16 public:
17 Window(int width, int height);
18 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 :(
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 };
tfarina 2010/11/26 15:38:16 DISALLOW_COPY_AND_ASSIGN?
vrk (LEFT CHROMIUM) 2010/11/29 18:14:41 Done.
32
33 } // namespace media
34
35 #endif // MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698