OLD | NEW |
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 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE { | 66 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE { |
67 return context3d_.get(); | 67 return context3d_.get(); |
68 } | 68 } |
69 | 69 |
70 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE { | 70 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE { |
71 return NULL; | 71 return NULL; |
72 } | 72 } |
73 | 73 |
74 virtual void SendFrameToParentCompositor( | 74 virtual void SendFrameToParentCompositor( |
75 const cc::CompositorFrame&) OVERRIDE { | 75 cc::CompositorFrame*) OVERRIDE { |
76 } | 76 } |
77 | 77 |
78 private: | 78 private: |
79 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; | 79 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; |
80 struct Capabilities capabilities_; | 80 struct Capabilities capabilities_; |
81 cc::OutputSurfaceClient* client_; | 81 cc::OutputSurfaceClient* client_; |
82 }; | 82 }; |
83 | 83 |
84 } // anonymous namespace | 84 } // anonymous namespace |
85 | 85 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 case ANDROID_BITMAP_FORMAT_RGBA_8888: | 422 case ANDROID_BITMAP_FORMAT_RGBA_8888: |
423 return GL_UNSIGNED_BYTE; | 423 return GL_UNSIGNED_BYTE; |
424 break; | 424 break; |
425 case ANDROID_BITMAP_FORMAT_RGB_565: | 425 case ANDROID_BITMAP_FORMAT_RGB_565: |
426 default: | 426 default: |
427 return GL_UNSIGNED_SHORT_5_6_5; | 427 return GL_UNSIGNED_SHORT_5_6_5; |
428 } | 428 } |
429 } | 429 } |
430 | 430 |
431 } // namespace content | 431 } // namespace content |
OLD | NEW |