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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp

Issue 2134793002: Remove the command buffer method glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflict. Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 { 101 {
102 return GL_FRAMEBUFFER_COMPLETE; 102 return GL_FRAMEBUFFER_COMPLETE;
103 } 103 }
104 104
105 void GetIntegerv(GLenum pname, GLint* value) override 105 void GetIntegerv(GLenum pname, GLint* value) override
106 { 106 {
107 if (pname == GL_MAX_TEXTURE_SIZE) 107 if (pname == GL_MAX_TEXTURE_SIZE)
108 *value = 1024; 108 *value = 1024;
109 } 109 }
110 110
111 void GetImageivCHROMIUM(GLuint imageId, GLenum pname, GLint* data) override
112 {
113 if (pname == GC3D_GPU_MEMORY_BUFFER_ID)
114 *data = 1;
115 else
116 *data = -1;
117 }
118
119 void GenMailboxCHROMIUM(GLbyte* mailbox) override 111 void GenMailboxCHROMIUM(GLbyte* mailbox) override
120 { 112 {
121 ++m_currentMailboxByte; 113 ++m_currentMailboxByte;
122 WebExternalTextureMailbox temp; 114 WebExternalTextureMailbox temp;
123 memset(mailbox, m_currentMailboxByte, sizeof(temp.name)); 115 memset(mailbox, m_currentMailboxByte, sizeof(temp.name));
124 } 116 }
125 117
126 void ProduceTextureDirectCHROMIUM(GLuint texture, GLenum target, const GLbyt e* mailbox) override 118 void ProduceTextureDirectCHROMIUM(GLuint texture, GLenum target, const GLbyt e* mailbox) override
127 { 119 {
128 ASSERT_EQ(target, drawingBufferTextureTarget()); 120 ASSERT_EQ(target, drawingBufferTextureTarget());
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 // m_drawingBuffer deletes mailbox immediately when hidden. 771 // m_drawingBuffer deletes mailbox immediately when hidden.
780 772
781 GLuint waitSyncToken = 0; 773 GLuint waitSyncToken = 0;
782 memcpy(&waitSyncToken, mailbox.syncToken, sizeof(waitSyncToken)); 774 memcpy(&waitSyncToken, mailbox.syncToken, sizeof(waitSyncToken));
783 EXPECT_EQ(waitSyncToken, m_gl->mostRecentlyWaitedSyncToken()); 775 EXPECT_EQ(waitSyncToken, m_gl->mostRecentlyWaitedSyncToken());
784 776
785 m_drawingBuffer->beginDestruction(); 777 m_drawingBuffer->beginDestruction();
786 } 778 }
787 779
788 } // namespace blink 780 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698