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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 1078253002: gfx namespace cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 "gpu/command_buffer/tests/gl_manager.h" 5 #include "gpu/command_buffer/tests/gl_manager.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <GLES2/gl2ext.h> 8 #include <GLES2/gl2ext.h>
9 #include <GLES2/gl2extchromium.h> 9 #include <GLES2/gl2extchromium.h>
10 10
(...skipping 23 matching lines...) Expand all
34 #include "ui/gl/gl_image_ref_counted_memory.h" 34 #include "ui/gl/gl_image_ref_counted_memory.h"
35 #include "ui/gl/gl_share_group.h" 35 #include "ui/gl/gl_share_group.h"
36 #include "ui/gl/gl_surface.h" 36 #include "ui/gl/gl_surface.h"
37 37
38 namespace gpu { 38 namespace gpu {
39 namespace { 39 namespace {
40 40
41 size_t NumberOfPlanesForGpuMemoryBufferFormat( 41 size_t NumberOfPlanesForGpuMemoryBufferFormat(
42 gfx::GpuMemoryBuffer::Format format) { 42 gfx::GpuMemoryBuffer::Format format) {
43 switch (format) { 43 switch (format) {
44 case gfx::GpuMemoryBuffer::Format::ATC: 44 case gfx::GpuMemoryBuffer::ATC:
45 case gfx::GpuMemoryBuffer::Format::ATCIA: 45 case gfx::GpuMemoryBuffer::ATCIA:
46 case gfx::GpuMemoryBuffer::Format::DXT1: 46 case gfx::GpuMemoryBuffer::DXT1:
47 case gfx::GpuMemoryBuffer::Format::DXT5: 47 case gfx::GpuMemoryBuffer::DXT5:
48 case gfx::GpuMemoryBuffer::Format::ETC1: 48 case gfx::GpuMemoryBuffer::ETC1:
49 case gfx::GpuMemoryBuffer::Format::R_8: 49 case gfx::GpuMemoryBuffer::R_8:
50 case gfx::GpuMemoryBuffer::Format::RGBA_8888: 50 case gfx::GpuMemoryBuffer::RGBA_8888:
51 case gfx::GpuMemoryBuffer::Format::RGBX_8888: 51 case gfx::GpuMemoryBuffer::RGBX_8888:
52 case gfx::GpuMemoryBuffer::Format::BGRA_8888: 52 case gfx::GpuMemoryBuffer::BGRA_8888:
53 return 1; 53 return 1;
54 case gfx::GpuMemoryBuffer::Format::YUV_420: 54 case gfx::GpuMemoryBuffer::YUV_420:
55 return 3; 55 return 3;
56 } 56 }
57 NOTREACHED(); 57 NOTREACHED();
58 return 0; 58 return 0;
59 } 59 }
60 60
61 size_t SubsamplingFactor(gfx::GpuMemoryBuffer::Format format, int plane) { 61 size_t SubsamplingFactor(gfx::GpuMemoryBuffer::Format format, int plane) {
62 switch (format) { 62 switch (format) {
63 case gfx::GpuMemoryBuffer::ATC: 63 case gfx::GpuMemoryBuffer::ATC:
64 case gfx::GpuMemoryBuffer::ATCIA: 64 case gfx::GpuMemoryBuffer::ATCIA:
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 uint32 GLManager::CreateStreamTexture(uint32 texture_id) { 505 uint32 GLManager::CreateStreamTexture(uint32 texture_id) {
506 NOTIMPLEMENTED(); 506 NOTIMPLEMENTED();
507 return 0; 507 return 0;
508 } 508 }
509 509
510 void GLManager::SetLock(base::Lock*) { 510 void GLManager::SetLock(base::Lock*) {
511 NOTIMPLEMENTED(); 511 NOTIMPLEMENTED();
512 } 512 }
513 513
514 } // namespace gpu 514 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc ('k') | ui/gl/gl_image_linux_dma_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698