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

Side by Side Diff: gpu/command_buffer/service/image_manager.cc

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add kGLImplementationMockGL case to gl_image_android.cc. Created 8 years, 2 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) 2012 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 "gpu/command_buffer/service/image_manager.h"
6
7 #include "ui/gl/gl_image.h"
8
9 namespace gpu {
10 namespace gles2 {
11
12 ImageManager::ImageManager() {
13 }
14
15 ImageManager::~ImageManager() {
16 }
17
18 void ImageManager::AddImage(gfx::GLImage* image, int32 service_id) {
19 gl_images_[service_id] = image;
20 }
21
22 void ImageManager::RemoveImage(int32 service_id) {
23 gl_images_.erase(service_id);
24 }
25
26 gfx::GLImage* ImageManager::LookupImage(int32 service_id) {
27 GLImageMap::const_iterator iter = gl_images_.find(service_id);
28 if (iter != gl_images_.end())
29 return iter->second;
30
31 return NULL;
32 }
33
34 } // namespace gles2
35 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/image_manager.h ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698