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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 16046003: Move webkit/gpu into webkit/common/gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in content/common/gpu/client/gl_helper_* Created 7 years, 7 months 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 | « cc/test/pixel_test.cc ('k') | content/browser/renderer_host/image_transport_factory_android.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/renderer_host/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "content/browser/renderer_host/image_transport_factory_android.h" 26 #include "content/browser/renderer_host/image_transport_factory_android.h"
27 #include "content/common/gpu/client/gl_helper.h" 27 #include "content/common/gpu/client/gl_helper.h"
28 #include "content/common/gpu/client/gpu_channel_host.h" 28 #include "content/common/gpu/client/gpu_channel_host.h"
29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
30 #include "content/common/gpu/gpu_process_launch_causes.h" 30 #include "content/common/gpu/gpu_process_launch_causes.h"
31 #include "content/public/common/content_switches.h" 31 #include "content/public/common/content_switches.h"
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 32 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
33 #include "third_party/khronos/GLES2/gl2.h" 33 #include "third_party/khronos/GLES2/gl2.h"
34 #include "third_party/khronos/GLES2/gl2ext.h" 34 #include "third_party/khronos/GLES2/gl2ext.h"
35 #include "ui/gfx/android/java_bitmap.h" 35 #include "ui/gfx/android/java_bitmap.h"
36 #include "webkit/common/gpu/webgraphicscontext3d_in_process_impl.h"
36 #include "webkit/glue/webthread_impl.h" 37 #include "webkit/glue/webthread_impl.h"
37 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
38 38
39 namespace gfx { 39 namespace gfx {
40 class JavaBitmap; 40 class JavaBitmap;
41 } 41 }
42 42
43 namespace { 43 namespace {
44 44
45 // Used for drawing directly to the screen. Bypasses resizing and swaps. 45 // Used for drawing directly to the screen. Bypasses resizing and swaps.
46 class DirectOutputSurface : public cc::OutputSurface { 46 class DirectOutputSurface : public cc::OutputSurface {
47 public: 47 public:
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 case ANDROID_BITMAP_FORMAT_RGBA_8888: 458 case ANDROID_BITMAP_FORMAT_RGBA_8888:
459 return GL_UNSIGNED_BYTE; 459 return GL_UNSIGNED_BYTE;
460 break; 460 break;
461 case ANDROID_BITMAP_FORMAT_RGB_565: 461 case ANDROID_BITMAP_FORMAT_RGB_565:
462 default: 462 default:
463 return GL_UNSIGNED_SHORT_5_6_5; 463 return GL_UNSIGNED_SHORT_5_6_5;
464 } 464 }
465 } 465 }
466 466
467 } // namespace content 467 } // namespace content
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | content/browser/renderer_host/image_transport_factory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698