| 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/WebGraphicsContext3D.
h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/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(OS_MACOSX) | 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 |
| 30 namespace gpu { | 30 namespace gpu { |
| 31 namespace gles2 { | 31 namespace gles2 { |
| 32 class GLES2Implementation; | 32 class GLES2Implementation; |
| 33 } | 33 } |
| 34 } | 34 } |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 514 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 515 scoped_array<uint8> scanline_; | 515 scoped_array<uint8> scanline_; |
| 516 void FlipVertically(uint8* framebuffer, | 516 void FlipVertically(uint8* framebuffer, |
| 517 unsigned int width, | 517 unsigned int width, |
| 518 unsigned int height); | 518 unsigned int height); |
| 519 #endif | 519 #endif |
| 520 }; | 520 }; |
| 521 | 521 |
| 522 #endif // defined(ENABLE_GPU) | 522 #endif // defined(ENABLE_GPU) |
| 523 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 523 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |