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_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
6 #define CONTENT_RENDERER_GPU_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 <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "content/renderer/gpu/renderer_gl_context.h" | 16 #include "content/renderer/gpu/renderer_gl_context.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
21 #include "ui/gfx/gl/gpu_preference.h" | 21 #include "ui/gfx/gl/gpu_preference.h" |
22 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
23 | 23 |
24 #if defined(USE_SKIA) | 24 #if defined(USE_SKIA) |
25 #define FLIP_FRAMEBUFFER_VERTICALLY | 25 #define FLIP_FRAMEBUFFER_VERTICALLY |
26 #endif | 26 #endif |
27 | 27 |
28 class GpuChannelHost; | 28 class GpuChannelHost; |
29 | 29 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 518 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
519 scoped_array<uint8> scanline_; | 519 scoped_array<uint8> scanline_; |
520 void FlipVertically(uint8* framebuffer, | 520 void FlipVertically(uint8* framebuffer, |
521 unsigned int width, | 521 unsigned int width, |
522 unsigned int height); | 522 unsigned int height); |
523 #endif | 523 #endif |
524 }; | 524 }; |
525 | 525 |
526 #endif // defined(ENABLE_GPU) | 526 #endif // defined(ENABLE_GPU) |
527 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 527 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |