Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h

Issue 8632012: Flip Y-axis in WebGL for Skia-Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698