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 "gfx/native_widget_types.h" |
| 10 #include "media/tools/shader_bench/painter.h" |
| 11 |
| 12 namespace media { |
| 13 |
| 14 class Window { |
| 15 public: |
| 16 Window(int width, int height); |
| 17 virtual void Paint(); |
| 18 virtual void SetPainter(Painter* painter); |
| 19 gfx::NativeWindow CreateNativeWindow(int width, int height); |
| 20 gfx::PluginWindowHandle PluginWindow(); |
| 21 |
| 22 protected: |
| 23 Painter* painter_; |
| 24 gfx::NativeWindow window_handle_; |
| 25 }; |
| 26 |
| 27 } |
| 28 |
| 29 #endif // MEDIA_TOOLS_SHADER_BENCH_WINDOW_H_ |
OLD | NEW |