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

Side by Side Diff: android_webview/browser/pixel_buffer_impl.h

Issue 13135004: android_webview: changes to support Android GraphicBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments in ui/gl/pixel_buffer.h Created 7 years, 8 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_PIXEL_BUFFER_IMPL_H_
6 #define ANDROID_WEBVIEW_BROWSER_PIXEL_BUFFER_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/gfx/size.h"
11 #include "ui/gl/pixel_buffer.h"
12
13 struct AwDrawGLFunctionTable;
14
15 namespace android_webview {
16
17 class PixelBufferImpl : public gfx::PixelBuffer {
18 public:
19 static void SetAwDrawGLFunctionTable(AwDrawGLFunctionTable* table);
20 PixelBufferImpl(const gfx::Size& size);
21 virtual ~PixelBufferImpl();
22
23 // methods from PixelBuffer
24 virtual void MapForWrite(void** vaddr) OVERRIDE;
25 virtual void Unmap() OVERRIDE;
26 virtual void* GetNativeBuffer() OVERRIDE;
27 virtual uint32 GetStride() OVERRIDE;
28
29 private:
30 int buffer_id_;
31 gfx::Size size_;
32
33 DISALLOW_COPY_AND_ASSIGN(PixelBufferImpl);
34 };
35
36 } // namespace android_webview
37
38 #endif // ANDROID_WEBVIEW_BROWSER_PIXEL_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698