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

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

Issue 11777025: cc: Implement DelegatingRender::drawFrame() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for-landing Created 7 years, 11 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/yuv_video_draw_quad.cc ('k') | content/browser/renderer_host/image_transport_factory.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 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « cc/yuv_video_draw_quad.cc ('k') | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698