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" | |
| 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_ | |
| OLD | NEW |