| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "chrome/renderer/ggl/ggl.h" | 14 #include "chrome/renderer/ggl/ggl.h" |
| 15 #include "gfx/native_widget_types.h" | |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 18 #include "ui/gfx/native_widget_types.h" |
| 19 | 19 |
| 20 #if !defined(OS_MACOSX) | 20 #if !defined(OS_MACOSX) |
| 21 #define FLIP_FRAMEBUFFER_VERTICALLY | 21 #define FLIP_FRAMEBUFFER_VERTICALLY |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 class GpuChannelHost; | 24 class GpuChannelHost; |
| 25 class CommandBufferProxy; | 25 class CommandBufferProxy; |
| 26 | 26 |
| 27 namespace gpu { | 27 namespace gpu { |
| 28 namespace gles2 { | 28 namespace gles2 { |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 scoped_ptr<uint8> scanline_; | 452 scoped_ptr<uint8> scanline_; |
| 453 void FlipVertically(uint8* framebuffer, | 453 void FlipVertically(uint8* framebuffer, |
| 454 unsigned int width, | 454 unsigned int width, |
| 455 unsigned int height); | 455 unsigned int height); |
| 456 #endif | 456 #endif |
| 457 }; | 457 }; |
| 458 | 458 |
| 459 #endif // defined(ENABLE_GPU) | 459 #endif // defined(ENABLE_GPU) |
| 460 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 460 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 461 | 461 |
| OLD | NEW |