OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
6 #define CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_RENDERER_GPU_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/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "content/renderer/renderer_gl_context.h" | 14 #include "content/renderer/gpu/renderer_gl_context.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
17 #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" | 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; |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 460 |
461 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 461 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
462 scoped_array<uint8> scanline_; | 462 scoped_array<uint8> scanline_; |
463 void FlipVertically(uint8* framebuffer, | 463 void FlipVertically(uint8* framebuffer, |
464 unsigned int width, | 464 unsigned int width, |
465 unsigned int height); | 465 unsigned int height); |
466 #endif | 466 #endif |
467 }; | 467 }; |
468 | 468 |
469 #endif // defined(ENABLE_GPU) | 469 #endif // defined(ENABLE_GPU) |
470 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 470 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |