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

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: a few more consts 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
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 case ANDROID_BITMAP_FORMAT_RGBA_8888: 421 case ANDROID_BITMAP_FORMAT_RGBA_8888:
422 return GL_UNSIGNED_BYTE; 422 return GL_UNSIGNED_BYTE;
423 break; 423 break;
424 case ANDROID_BITMAP_FORMAT_RGB_565: 424 case ANDROID_BITMAP_FORMAT_RGB_565:
425 default: 425 default:
426 return GL_UNSIGNED_SHORT_5_6_5; 426 return GL_UNSIGNED_SHORT_5_6_5;
427 } 427 }
428 } 428 }
429 429
430 } // namespace content 430 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698