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

Side by Side Diff: android_webview/common/graphic_buffer_factory_proxy.cc

Issue 13135004: android_webview: changes to support Android GraphicBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add GetStride() API on the GraphicBuffer 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 (c) 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 #include "android_webview/common/graphic_buffer_factory_proxy.h"
6 #include "base/logging.h"
7
8 namespace android_webview {
9
10 cc::GraphicBuffer::Factory* g_graphic_buffer_factory_ = NULL;
11
12 const cc::GraphicBuffer::Factory& GetGraphicBufferFactoryProxy() {
13 return *g_graphic_buffer_factory_;
14 }
15
16 void SetGraphicBufferFactoryProxy(const cc::GraphicBuffer::Factory& factory) {
17 DCHECK(g_graphic_buffer_factory_ == NULL);
18 g_graphic_buffer_factory_ = new cc::GraphicBuffer::Factory(factory);
19 }
20
21 } // namespace android_webview
22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698